Skip to content

Commit

Permalink
set CYLC_DEBUG env var when set-verbosity DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Dawson committed Dec 8, 2023
1 parent 994b774 commit 16dfedd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cylc/flow/log_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ def log_level_to_verbosity(lvl: int) -> int:
>>> log_level_to_verbosity(logging.NOTSET)
2
>>> log_level_to_verbosity(logging.DEBUG)
1
2
>>> log_level_to_verbosity(logging.INFO)
0
>>> log_level_to_verbosity(logging.WARNING)
-1
>>> log_level_to_verbosity(logging.ERROR)
-1
"""
if lvl < logging.DEBUG:
if lvl <= logging.DEBUG:
return 2
if lvl < logging.INFO:
return 1
Expand Down

0 comments on commit 16dfedd

Please sign in to comment.