mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Default to ERROR logging level if the supplied logging level is invalid
This commit is contained in:
parent
40ba6ea2ba
commit
58361f4af2
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ def setupLogger(level="error", filename=None):
|
|||
:param filename: str, the file to log to
|
||||
"""
|
||||
|
||||
if not level:
|
||||
if not level or level not in levels:
|
||||
level = "error"
|
||||
|
||||
logging.basicConfig(
|
||||
|
|
Loading…
Add table
Reference in a new issue