Skip to content

Commit

Permalink
respect console handler log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderAuras committed Apr 25, 2024
1 parent cc372d0 commit 8f2006d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tqdm/contrib/logging.py
Expand Up @@ -86,6 +86,7 @@ def logging_redirect_tqdm(
orig_handler = _get_first_found_console_logging_handler(logger.handlers)
if orig_handler is not None:
tqdm_handler.setFormatter(orig_handler.formatter)
tqdm_handler.level = orig_handler.level
tqdm_handler.stream = orig_handler.stream
logger.handlers = [
handler for handler in logger.handlers
Expand Down

0 comments on commit 8f2006d

Please sign in to comment.