chore: increase log rotation to 20 backup files
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ def setup_logger(name: str, level: int = logging.DEBUG) -> logging.Logger:
|
|||||||
|
|
||||||
if not logger.handlers:
|
if not logger.handlers:
|
||||||
fh = RotatingFileHandler(
|
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.setLevel(logging.DEBUG)
|
||||||
fh.setFormatter(LOG_FORMAT)
|
fh.setFormatter(LOG_FORMAT)
|
||||||
|
|||||||
Reference in New Issue
Block a user