Increase file log level to debug.

Fixes https://github.com/Khopa/dcs_liberation/issues/907
This commit is contained in:
Dan Albert 2021-02-21 00:38:52 +01:00 committed by Khopa
parent a9aba3484a
commit 2e7daceb3c

View File

@ -13,8 +13,8 @@ def init_logging(version: str) -> None:
logging.basicConfig(level=logging.DEBUG, format=fmt)
logger = logging.getLogger()
handler = RotatingFileHandler('./logs/liberation.log', 'a', 5000000, 1)
handler.setLevel(logging.INFO)
handler = RotatingFileHandler("./logs/liberation.log", "a", 5000000, 1)
handler.setLevel(logging.DEBUG)
handler.setFormatter(logging.Formatter(fmt))
logger.addHandler(handler)