File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
packages/service-library/src/servicelib/fastapi
catalog/src/simcore_service_catalog
dynamic-scheduler/src/simcore_service_dynamic_scheduler
notifications/src/simcore_service_notifications Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1616_logger = logging .getLogger (__name__ )
1717
1818
19- def logging_lifespan (
19+ def create_logging_lifespan (
2020 * ,
2121 log_format_local_dev_enabled : bool ,
2222 logger_filter_mapping : dict [LoggerName , list [MessageSubstring ]],
Original file line number Diff line number Diff line change 55
66from common_library .json_serialization import json_dumps
77from fastapi import FastAPI
8- from servicelib .fastapi .logging_lifespan import logging_lifespan
8+ from servicelib .fastapi .logging_lifespan import create_logging_lifespan
99from simcore_service_catalog .core .application import create_app
1010from simcore_service_catalog .core .settings import ApplicationSettings
1111
2424
2525def app_factory () -> FastAPI :
2626 app_settings = ApplicationSettings .create_from_envs ()
27- logging_lifespan = logging_lifespan (
27+ logging_lifespan = create_logging_lifespan (
2828 log_format_local_dev_enabled = app_settings .CATALOG_LOG_FORMAT_LOCAL_DEV_ENABLED ,
2929 logger_filter_mapping = app_settings .CATALOG_LOG_FILTER_MAPPING ,
3030 tracing_settings = app_settings .CATALOG_TRACING ,
Original file line number Diff line number Diff line change 66from common_library .json_serialization import json_dumps
77from fastapi import FastAPI
88from servicelib .fastapi .logging_lifespan import (
9- logging_lifespan ,
9+ create_logging_lifespan ,
1010)
1111from simcore_service_dynamic_scheduler .core .application import create_app
1212from simcore_service_dynamic_scheduler .core .settings import ApplicationSettings
2424
2525def app_factory () -> FastAPI :
2626 app_settings = ApplicationSettings .create_from_envs ()
27- logging_lifespan = logging_lifespan (
27+ logging_lifespan = create_logging_lifespan (
2828 log_format_local_dev_enabled = app_settings .DYNAMIC_SCHEDULER_LOG_FORMAT_LOCAL_DEV_ENABLED ,
2929 logger_filter_mapping = app_settings .DYNAMIC_SCHEDULER_LOG_FILTER_MAPPING ,
3030 tracing_settings = app_settings .DYNAMIC_SCHEDULER_TRACING ,
Original file line number Diff line number Diff line change 33
44from common_library .json_serialization import json_dumps
55from fastapi import FastAPI
6- from servicelib .fastapi .logging_lifespan import logging_lifespan
6+ from servicelib .fastapi .logging_lifespan import create_logging_lifespan
77from simcore_service_notifications .core .application import create_app
88from simcore_service_notifications .core .settings import (
99 ApplicationSettings ,
1919
2020def app_factory () -> FastAPI :
2121 app_settings = ApplicationSettings .create_from_envs ()
22- logging_lifespan = logging_lifespan (
22+ logging_lifespan = create_logging_lifespan (
2323 log_format_local_dev_enabled = app_settings .NOTIFICATIONS_VOLUMES_LOG_FORMAT_LOCAL_DEV_ENABLED ,
2424 logger_filter_mapping = app_settings .NOTIFICATIONS_VOLUMES_LOG_FILTER_MAPPING ,
2525 tracing_settings = app_settings .NOTIFICATIONS_TRACING ,
You can’t perform that action at this time.
0 commit comments