Skip to content

Commit

Permalink
chore: update logger class changing feature
Browse files Browse the repository at this point in the history
Co-authored-by: Yann poupon <[email protected]>
  • Loading branch information
sebclrsn and yannpoupon authored Aug 17, 2023
1 parent 12c35b2 commit c63acf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pykiso/logging_initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def change_logger_class(log_level: str, verbose: bool, logger: str):
# We modify the init function so that the logger only need the name to be initialized
if kwargs_log:
logger_class.__init__ = partialmethod(
logger_class.__init__, level=LEVELS[log_level], **kwargs_log
logger_class.__init__, **kwargs_log
)
# Change logging.root since test can use logging.info for example
logging.root = logger_class(name="root", level=LEVELS[log_level])
Expand Down

0 comments on commit c63acf2

Please sign in to comment.