Update log.py

This commit is contained in:
resphina
2023-09-01 09:39:45 +08:00
committed by GitHub
parent c6e31b2fdc
commit 79e4af315e

View File

@@ -20,7 +20,7 @@ def _reset_logger(log):
file_handle.setFormatter( file_handle.setFormatter(
logging.Formatter( logging.Formatter(
"[%(levelname)s][%(asctime)s][%(filename)s:%(lineno)d] - %(message)s", "[%(levelname)s][%(asctime)s][%(filename)s:%(lineno)d] - %(message)s",
datefmt="%Y-%m-%d %H:%M:%S", datefmt="%Y-%m-%d %H:%M:%S",
) )
) )
log.addHandler(file_handle) log.addHandler(file_handle)