feat(format): modify the log format
This commit is contained in:
parent
6bbaaae30f
commit
81f2a21f6b
@ -81,5 +81,5 @@ class JsonSink:
|
||||
exc_type, exc_value, exc_tb = record["exception"]
|
||||
log_entry["stacktrace"] = traceback.format_exception(exc_type, exc_value, exc_tb)
|
||||
|
||||
self.log_file.write(json.dumps(log_entry, ensure_ascii=False) + "\n")
|
||||
self.log_file.write(json.dumps(log_entry, ensure_ascii=False, default=str) + "\n")
|
||||
self.log_file.flush()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user