Skip to content

Commit

Permalink
Mod: Allow ERROR level for loggers for values below 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Oct 14, 2023
1 parent 8a5d297 commit ad2c124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aac_datasets/utils/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def _setup_logging(pkg_name: str, verbose: int) -> None:
if not found:
pkg_logger.addHandler(handler)

if verbose <= 0:
if verbose < 0:
level = logging.ERROR
elif verbose == 0:
level = logging.WARNING
elif verbose == 1:
level = logging.INFO
Expand Down

0 comments on commit ad2c124

Please sign in to comment.