修复log无法显示的bug

This commit is contained in:
EstrellaXD
2022-07-09 11:55:46 +08:00
parent e18fb08942
commit 5dab9acf57

View File

@@ -7,8 +7,6 @@ def setup_logger():
DATE_FORMAT = "%Y-%m-%d %X"
LOGGING_FORMAT = "%(asctime)s %(levelname)s: %(message)s"
logging.basicConfig(
filename=settings.log_path,
filemode="w",
level=level,
datefmt=DATE_FORMAT,
format=LOGGING_FORMAT,