Skip to content

Commit 27dcbd1

Browse files
author
Andrei Neagu
committed
refactr
1 parent 5d0d7be commit 27dcbd1

File tree

1 file changed

+4
-4
lines changed
  • services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core

1 file changed

+4
-4
lines changed

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core/application.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"httpcore",
4848
)
4949

50-
logger = logging.getLogger(__name__)
50+
_logger = logging.getLogger(__name__)
5151

5252
#
5353
# https://patorjk.com/software/taag/#p=display&f=AMC%20Tubes&t=DYSIDECAR
@@ -126,7 +126,7 @@ def create_base_app() -> FastAPI:
126126
noisy_loggers=_NOISY_LOGGERS,
127127
)
128128

129-
logger.info(
129+
_logger.info(
130130
"Application settings: %s",
131131
json_dumps(app_settings, indent=2, sort_keys=True),
132132
)
@@ -221,11 +221,11 @@ async def _on_startup() -> None:
221221
async def _on_shutdown() -> None:
222222
app_state = AppState(app)
223223
if docker_compose_yaml := app_state.compose_spec:
224-
logger.info("Removing spawned containers")
224+
_logger.info("Removing spawned containers")
225225

226226
result = await docker_compose_down(docker_compose_yaml, app.state.settings)
227227

228-
logger.log(
228+
_logger.log(
229229
logging.INFO if result.success else logging.ERROR,
230230
"Removed spawned containers:\n%s",
231231
result.message,

0 commit comments

Comments
 (0)