Skip to content

Commit

Permalink
chore: run pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
sebclrsn committed Aug 17, 2023
1 parent c63acf2 commit 2820d0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/whats_new/version_0_23_0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Add changeable logger class for the test
Add the possibility to change the logger class with the CLI.
For more information please refer to :ref:`change_logger_class`.

Add shutdown method to CCHannel
Add shutdown method to CCHannel
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Add proper shutdown method for connector instead of instead of using
Expand Down
2 changes: 1 addition & 1 deletion examples/uds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ connectors:
test_suite_list:
- suite_dir: test_uds
test_filter_pattern: 'test_raw_uds*.py'
test_suite_id: 1
test_suite_id: 1
4 changes: 1 addition & 3 deletions src/pykiso/logging_initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,7 @@ def change_logger_class(log_level: str, verbose: bool, logger: str):
logger_class = import_object(logger_class)
# 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__, **kwargs_log
)
logger_class.__init__ = partialmethod(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])
# Remove the handler from the new logger else the handler will be called twice with the handler from the root
Expand Down

0 comments on commit 2820d0b

Please sign in to comment.