Increase logfile size
This commit is contained in:
parent
251eb5aa96
commit
cdfcdb86c9
@ -92,7 +92,7 @@ def setup_logging(config: Dict[str, Any]) -> None:
|
|||||||
logging.root.addHandler(handler)
|
logging.root.addHandler(handler)
|
||||||
else:
|
else:
|
||||||
handler = RotatingFileHandler(logfile,
|
handler = RotatingFileHandler(logfile,
|
||||||
maxBytes=1024 * 1024, # 1Mb
|
maxBytes=1024 * 1024 * 10, # 10Mb
|
||||||
backupCount=10)
|
backupCount=10)
|
||||||
handler.setFormatter(Formatter(LOGFORMAT))
|
handler.setFormatter(Formatter(LOGFORMAT))
|
||||||
logging.root.addHandler(handler)
|
logging.root.addHandler(handler)
|
||||||
|
Loading…
Reference in New Issue
Block a user