mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 06:34:56 -04:00
Fix logging verbosity parsing code
This commit is contained in:
parent
820ed34abe
commit
b370f9903c
1 changed files with 2 additions and 3 deletions
|
@ -88,9 +88,8 @@ def setup_logging(verbosity=0, filename=None, config_path=None):
|
|||
'%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s'
|
||||
)
|
||||
|
||||
if not verbosity or verbosity == 0:
|
||||
level = logging.INFO
|
||||
elif verbosity == 1:
|
||||
level = logging.INFO
|
||||
if verbosity:
|
||||
level = logging.DEBUG
|
||||
|
||||
# FIXME: we need a logging.WARN for a -q quiet option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue