File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
services/notifications/src/simcore_service_notifications/modules/celery Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- import logging
21from functools import partial
32
43from celery .signals import worker_init , worker_shutdown # type: ignore[import-untyped]
87 on_worker_shutdown ,
98)
109from servicelib .fastapi .celery .app_server import FastAPIAppServer
11- from servicelib .logging_utils import config_all_loggers
10+ from servicelib .logging_utils import setup_loggers
1211
1312from ...core .application import create_app
1413from ...core .settings import ApplicationSettings
1514from .tasks import setup_worker_tasks
1615
1716_settings = ApplicationSettings .create_from_envs ()
1817
19- logging .basicConfig (level = _settings .log_level ) # NOSONAR
20- logging .root .setLevel (_settings .log_level )
21- config_all_loggers (
18+ setup_loggers (
2219 log_format_local_dev_enabled = _settings .NOTIFICATIONS_LOG_FORMAT_LOCAL_DEV_ENABLED ,
2320 logger_filter_mapping = _settings .NOTIFICATIONS_LOG_FILTER_MAPPING ,
2421 tracing_settings = _settings .NOTIFICATIONS_TRACING ,
22+ log_base_level = _settings .log_level ,
23+ noisy_loggers = None ,
2524)
2625
2726
You can’t perform that action at this time.
0 commit comments