fix: avoid duplicate timestamp in web logs

This commit is contained in:
ngfchl
2026-07-07 09:25:52 +08:00
parent 710a76b699
commit afb01ee7b8
+1 -1
View File
@@ -34,7 +34,7 @@ def compact_log_message(record: logging.LogRecord) -> str:
msg = " ".join(msg.split())
if len(msg) > MAX_LOG_MESSAGE_CHARS:
msg = msg[:MAX_LOG_MESSAGE_CHARS] + "..."
return f"{format_dt(from_timestamp(record.created))} [{record.levelname}] {msg}"
return msg
class SSELogHandler(logging.Handler):