changeset 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 6b9be5dec572
files web/log.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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