fix: avoid duplicate timestamp in web logs
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user