Mercurial > templog
diff web/log.py @ 288:95f704ce809d
start/end for debug
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 01 Feb 2018 23:49:48 +0800 |
parents | 61269311ed3d |
children | f7261dd970da |
line wrap: on
line diff
--- a/web/log.py Mon Feb 20 23:23:57 2017 +0800 +++ b/web/log.py Thu Feb 01 23:49:48 2018 +0800 @@ -221,8 +221,9 @@ def record_debug(params): f = debug_file('a+') - f.write('===== %s =====\n' % time.strftime('%a, %d %b %Y %H:%M:%S')) + f.write('===== start %s =====\n' % time.strftime('%a, %d %b %Y %H:%M:%S')) json.dump(params, f, sort_keys=True, indent=4) + f.write('===== end %s =====\n' % time.strftime('%a, %d %b %Y %H:%M:%S')) f.flush() return f