mirror of
https://github.com/munki/munki.git
synced 2026-04-22 12:38:23 -05:00
Add year and timezone offset to log output.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user