Skip to content
Snippets Groups Projects
Unverified Commit 851702e0 authored by Awais Qureshi's avatar Awais Qureshi Committed by GitHub
Browse files

Merge pull request #21660 from edx/awais786/BOM-479

BOM-479
parents 71a593f6 f6537586
No related merge requests found
......@@ -111,14 +111,16 @@ class Command(BaseCommand):
Sets logging levels for this module and the block structure
cache module, based on the given the options.
"""
if options.get('verbosity') == 0:
verbosity = options.get('verbosity')
if verbosity == 0:
log_level = logging.CRITICAL
elif options.get('verbosity') == 1:
elif verbosity == 1:
log_level = logging.WARNING
else:
log_level = logging.INFO
if options.get('verbosity') < 3:
if verbosity is not None and verbosity < 3:
cache_log_level = logging.CRITICAL
else:
cache_log_level = logging.INFO
......
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