Skip to content

Commit

Permalink
fix: log level when verbose is activated (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannpoupon authored Sep 25, 2024
1 parent 4694dae commit f0f814e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pykiso/logging_initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ def initialize_loggers(loggers: Optional[List[str]]) -> None:

# but keep the other ones to the configured level as they could have deactivated by a previous call
for logger_name in active_loggers:
logging.getLogger(logger_name).setLevel(log_options.log_level)
logging.getLogger(logger_name).setLevel(
get_internal_level(log_options.log_level) if log_options.verbose else log_options.log_level
)


def import_object(path: str) -> Union[None, logging.Logger]:
Expand Down

0 comments on commit f0f814e

Please sign in to comment.