only save errors to log
This commit is contained in:
parent
d8fdd30300
commit
06c1c1e955
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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"]):
|
||||
|
|
Reference in a new issue