Add date to logging messages (#1623) (#1679)

This commit is contained in:
Zeng Zhongchao
2024-10-17 09:54:55 +08:00
committed by GitHub
parent d19cc0b9c9
commit 2782132be8
2 changed files with 8 additions and 2 deletions

View File

@@ -588,7 +588,7 @@ def configure_logger(server_args, prefix: str = ""):
logging.basicConfig(
level=getattr(logging, server_args.log_level.upper()),
format=format,
datefmt="%H:%M:%S",
datefmt="%Y-%m-%d %H:%M:%S",
force=True,
)