Initializing the conftest logging upon importing the isctest package
isn't practical when there are standalone pieces which can be used
outside of the testing framework, such as the asyncdnsserver module.
# pylint: disable=redefined-outer-name
+isctest.log.init_conftest_logger()
+isctest.log.avoid_duplicated_logs()
+
# ----------------- Older pytest / xdist compatibility -------------------
# As of 2023-01-11, the minimal supported pytest / xdist versions are
# determined by what is available in EL8/EPEL8:
# information regarding copyright ownership.
from .basic import (
+ avoid_duplicated_logs,
deinit_module_logger,
deinit_test_logger,
+ init_conftest_logger,
init_module_logger,
init_test_logger,
debug,
logging.root.handlers.remove(handler)
-init_conftest_logger()
-avoid_duplicated_logs()
-
-
def init_module_logger(system_test_name: str, testdir: Path):
logger = logging.getLogger(system_test_name)
logger.handlers.clear()