Include timestamps (with 100 us resolution) in Sugar logfiles, to allow debugging of IPC and timeouts
This commit is contained in:
parent
b01dbc5e75
commit
5ebcf5eda9
@ -59,7 +59,7 @@ class LogWriter:
|
||||
|
||||
if msg[len(msg) - 1] != '\n':
|
||||
msg += "\n"
|
||||
fmt = "%s - %s" % (level_txt, msg)
|
||||
fmt = "%.4f %s - %s" % (time.time(), level_txt, msg)
|
||||
fmt = fmt.encode("utf8")
|
||||
self._log_file.write(fmt)
|
||||
self._log_file.flush()
|
||||
|
Loading…
Reference in New Issue
Block a user