Add year and timezone offset to log output.

This commit is contained in:
Justin McWilliams
2012-06-06 14:12:02 -04:00
parent 62d433aed2
commit d841599fb4
+2 -2
View File
@@ -468,7 +468,7 @@ def format_time(timestamp=None):
def log(msg, logname=''):
"""Generic logging function"""
# date/time format string
formatstr = '%b %d %H:%M:%S'
formatstr = '%b %d %Y %H:%M:%S %z'
if not logname:
# use our regular logfile
logpath = pref('LogFile')
@@ -539,7 +539,7 @@ def saveappdata():
except FoundationPlist.NSPropertyListSerializationException, err:
munkicommon.display_warning(
'Unable to save inventory report: %s' % err)
def printreportitem(label, value, indent=0):