# HG changeset patch # User Matt Johnston # Date 1517500188 -28800 # Node ID 95f704ce809d53be00515fc7f8b49b9d9aa78a2a # Parent 61269311ed3d77d46bb39fbaf5807c9bf1793295 start/end for debug diff -r 61269311ed3d -r 95f704ce809d web/log.py --- 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