Skip to content
Snippets Groups Projects
Commit b370f990 authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Fix logging verbosity parsing code

parent 820ed34a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment