From 434940695a75fde2024d262731d7cfd3f06684fc Mon Sep 17 00:00:00 2001 From: Christian Cwienk Date: Tue, 7 Jan 2025 20:24:40 +0100 Subject: [PATCH] cleanup: do not unncecessarily configure logger Configuring `logging` gear should be to leaf components. This does not apply to either ccc or model packages, hence drop corresponding calls. --- ccc/delivery.py | 1 - model/__init__.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/ccc/delivery.py b/ccc/delivery.py index 08852097c..070c5639e 100644 --- a/ccc/delivery.py +++ b/ccc/delivery.py @@ -7,7 +7,6 @@ import delivery.client import model.base -ci.log.configure_default_logging() logger = logging.getLogger(__name__) diff --git a/model/__init__.py b/model/__init__.py index 48164ed46..b0e12ad21 100644 --- a/model/__init__.py +++ b/model/__init__.py @@ -15,7 +15,6 @@ import github3.exceptions import yaml -import ci.log import ctx import model.base @@ -35,7 +34,6 @@ empty_list = dataclasses.field(default_factory=list) # noqa:E3701 empty_tuple = dataclasses.field(default_factory=tuple) # noqa:E3701 -ci.log.configure_default_logging() logger = logging.getLogger(__name__) '''