chore: increase log rotation to 20 backup files

This commit is contained in:
2026-07-26 18:12:22 +08:00
parent 69b73e8ce0
commit 90ab5f9c0b
+1 -1
View File
@@ -21,7 +21,7 @@ def setup_logger(name: str, level: int = logging.DEBUG) -> logging.Logger:
if not logger.handlers:
fh = RotatingFileHandler(
LOG_FILE, maxBytes=10 * 1024 * 1024, backupCount=5, encoding="utf-8"
LOG_FILE, maxBytes=10 * 1024 * 1024, backupCount=20, encoding="utf-8"
)
fh.setLevel(logging.DEBUG)
fh.setFormatter(LOG_FORMAT)