Skip to content

Commit

Permalink
fix: allow success messages (level 25) to show at verbosity 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Dec 3, 2023
1 parent 3b001e1 commit 6c55926
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hordelib/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


class HordeLog:
# By default we're at error level or higher
# By default we're at info level or higher
verbosity: int = 20
quiet: int = 0

Expand All @@ -18,7 +18,10 @@ class HordeLog:

@classmethod
def set_logger_verbosity(cls, count):
cls.verbosity = 50 - (count * 10)
if count == 2:
cls.verbosity = 25
else:
cls.verbosity = 50 - (count * 10)

@classmethod
def is_stats_log(cls, record):
Expand Down

0 comments on commit 6c55926

Please sign in to comment.