Skip to content

Commit

Permalink
Fix default effectiveLevel in test_custom_logger_with_env_based_level…
Browse files Browse the repository at this point in the history
… test
  • Loading branch information
VladimirFilonov committed Oct 12, 2024
1 parent 875e929 commit 07ae457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_contextmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ def test_context_manager_singleton(context_manager: ContextManager):
def test_custom_logger_with_env_based_level(context_manager: ContextManager):

# Default log levelD
assert context_manager.get_logger().getEffectiveLevel() == logging.WARNING
assert context_manager.get_logger().getEffectiveLevel() == logging.INFO

context_manager.set_logger_by_name("test")
assert context_manager.get_logger().getEffectiveLevel() == logging.WARNING
assert context_manager.get_logger().getEffectiveLevel() == logging.INFO

os.environ["KEEP_PROVIDER_TEST_LOG_LEVEL"] = "DEBUG"
context_manager.set_logger_by_name("test")
Expand Down

0 comments on commit 07ae457

Please sign in to comment.