Skip to content

Commit fe00689

Browse files
author
Oliver Scott
committed
improved verbosity handling (script)
1 parent 505793c commit fe00689

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scaffoldgraph/scripts/run.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def configure_logger(verbosity):
5252
elif verbosity == 4:
5353
tqdm_handler['sink'].level = logging.DEBUG
5454
tqdm_handler['level'] = 'DEBUG'
55+
else: # if < 0 or > 4 is supplied set logger to max level (DEBUG)
56+
tqdm_handler['sink'].level = logging.DEBUG
57+
tqdm_handler['level'] = 'DEBUG'
5558

5659
config["handlers"].append(tqdm_handler)
5760
logger.configure(**config)

0 commit comments

Comments
 (0)