Skip to content

Commit

Permalink
Remove CLI logging if logging disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWinchester committed Aug 14, 2024
1 parent fff7775 commit 2c0457c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pvt_model/__utils__.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ def get_logger(
if verbose:
logger.setLevel(logging.DEBUG)
ch.setLevel(logging.WARN)
elif disable_logging:
logger.setLevel(logging.CRITICAL)
ch.setLevel(logging.CRITICAL)
else:
logger.setLevel(logging.INFO)
ch.setLevel(logging.ERROR)
Expand Down

0 comments on commit 2c0457c

Please sign in to comment.