Archived
1
0
Fork 0

only save errors to log

This commit is contained in:
Lukas Winkler 2020-01-07 20:47:21 +01:00
parent d8fdd30300
commit 06c1c1e955
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -31,7 +31,7 @@ logger.addHandler(ch)
fh = logging.FileHandler('debug.log')
fh.setFormatter(formatter)
fh.setLevel(logging.DEBUG)
fh.setLevel(logging.WARNING if "debug" not in config or not config["debug"] else logging.DEBUG)
logger.addHandler(fh)
if "sentry_url" in config and ("debug" not in config or not config["debug"]):