Skip to content

Commit 7a236fd

Browse files
committed
[shared] Fix tqdm.logging_redirect_tqdm not respecting logger verbosity
Being tracked by tqdm/tqdm#1272 upstream.
1 parent 3de400e commit 7a236fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dvr_scan/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def main():
3232
if settings is None:
3333
sys.exit(EXIT_ERROR)
3434
logger = logging.getLogger("dvr_scan")
35+
# TODO(1.7): The logging redirect does not respect the original log level, which is now set to
36+
# DEBUG mode for rolling log files.
37+
# We might have to just roll our own instead of relying on this one.
38+
# TODO: Use Python __debug__ mode instead of hard-coding as config option.
3539
debug_mode = settings.get("debug")
3640
show_traceback = getattr(logging, settings.get("verbosity").upper()) == logging.DEBUG
3741
with logging_redirect_tqdm(loggers=[logger]):

0 commit comments

Comments
 (0)