Skip to content

Commit b71b054

Browse files
author
Andrei Neagu
committed
refactor
1 parent aa239cf commit b71b054

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

services/agent/src/simcore_service_agent/services/containers_manager.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
from models_library.projects_nodes_io import NodeID
1111
from servicelib.fastapi.app_state import SingletonInAppStateMixin
1212

13-
from ..core.settings import ApplicationSettings
1413
from .docker_utils import get_containers_with_prefixes, remove_container_forcefully
1514

1615
_logger = logging.getLogger(__name__)
17-
_always_visible_logger = logging.getLogger(__name__)
1816

1917

2018
@dataclass
@@ -44,7 +42,7 @@ async def force_container_cleanup(self, node_id: NodeID) -> None:
4442
if orphan.startswith(user_service_prefix)
4543
}
4644
if unexpected_orphans:
47-
_always_visible_logger.info(
45+
_logger.warning(
4846
"Unexpected orphans detected for node_id='%s': %s",
4947
node_id,
5048
unexpected_orphans,
@@ -63,12 +61,6 @@ def get_containers_manager(app: FastAPI) -> ContainersManager:
6361

6462

6563
def setup_containers_manager(app: FastAPI) -> None:
66-
settings: ApplicationSettings = app.state.settings
67-
68-
logging.getLogger(_always_visible_logger.name).setLevel(
69-
min(logging.INFO, settings.log_level)
70-
)
71-
7264
async def _on_startup() -> None:
7365
ContainersManager().set_to_app_state(app)
7466

0 commit comments

Comments
 (0)