Skip to content

Commit 09506cf

Browse files
committed
revert
1 parent 958d0b7 commit 09506cf

File tree

1 file changed

+0
-20
lines changed
  • services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core

1 file changed

+0
-20
lines changed

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core/application.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import logging
2-
31
from fastapi import FastAPI
42
from servicelib.fastapi.openapi import override_fastapi_openapi_method
53
from servicelib.fastapi.profiler_middleware import ProfilerMiddleware
@@ -28,28 +26,10 @@
2826
from ..services.status_monitor import setup_status_monitor
2927
from .settings import ApplicationSettings
3028

31-
LOG_LEVEL_STEP = logging.CRITICAL - logging.ERROR
32-
NOISY_LOGGERS = (
33-
"faststream",
34-
"faststream.access",
35-
"simcore_service_dynamic_scheduler.services.deferred_manager_common",
36-
)
37-
38-
_logger = logging.getLogger(__name__)
39-
4029

4130
def create_app(settings: ApplicationSettings | None = None) -> FastAPI:
4231
app_settings = settings or ApplicationSettings.create_from_envs()
4332

44-
# keep mostly quiet noisy loggers
45-
quiet_level: int = max(
46-
min(logging.root.level + LOG_LEVEL_STEP, logging.CRITICAL), logging.WARNING
47-
)
48-
for name in NOISY_LOGGERS:
49-
logging.getLogger(name).setLevel(quiet_level)
50-
51-
_logger.debug("App settings:\n%s", app_settings.json(indent=2))
52-
5333
app = FastAPI(
5434
title=f"{PROJECT_NAME} web API",
5535
description=SUMMARY,

0 commit comments

Comments
 (0)