using human readable date in log output

This commit is contained in:
Alan Hamlett 2013-07-12 00:09:10 -07:00
parent 7134ac4650
commit 8d28743ba6

View file

@ -64,7 +64,7 @@ def setup_logging(args, version):
if not logfile: if not logfile:
logfile = '~/.wakatime.log' logfile = '~/.wakatime.log'
handler = logging.FileHandler(os.path.expanduser(logfile)) handler = logging.FileHandler(os.path.expanduser(logfile))
formatter = JsonFormatter(datefmt='%Y-%m-%dT%H:%M:%SZ') formatter = JsonFormatter(datefmt='%a %b %d %H:%M:%S %Z %Y')
formatter.setup( formatter.setup(
timestamp=args.timestamp, timestamp=args.timestamp,
endtime=args.endtime, endtime=args.endtime,