fix logger no longer applying to clan_lib

with moving code to clan_lib we are missing logging for some output. To
fix this we remove the module scoping from the logger and just set one
global logger.
This commit is contained in:
Jörg Thalheim
2025-05-20 09:55:19 +02:00
parent a22180f980
commit ccf8e99a98
7 changed files with 18 additions and 24 deletions

View File

@@ -1,3 +1,5 @@
import logging
import pytest
from clan_cli.custom_logger import setup_logging
@@ -19,4 +21,4 @@ def pytest_sessionstart(session: pytest.Session) -> None:
# You can access the session config, items, testsfailed, etc.
print(f"Session config: {session.config}")
setup_logging(level="INFO")
setup_logging(logging.DEBUG)