feat(format): modify the log format

This commit is contained in:
YuehuCao 2025-10-11 09:48:18 +08:00
parent 6bbaaae30f
commit 81f2a21f6b

View File

@ -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()