Skip to content

Commit e153e84

Browse files
fix: settings
1 parent 19a467a commit e153e84

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

services/notifications/src/simcore_service_notifications/core/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def _initialise_logger(settings: ApplicationSettings):
2727
logging.basicConfig(level=settings.LOG_LEVEL.value) # NOSONAR
2828
logging.root.setLevel(settings.LOG_LEVEL.value)
2929
config_all_loggers(
30-
log_format_local_dev_enabled=settings.NOTIFICATIONS_VOLUMES_LOG_FORMAT_LOCAL_DEV_ENABLED,
31-
logger_filter_mapping=settings.NOTIFICATIONS_VOLUMES_LOG_FILTER_MAPPING,
30+
log_format_local_dev_enabled=settings.NOTIFICATIONS_LOG_FORMAT_LOCAL_DEV_ENABLED,
31+
logger_filter_mapping=settings.NOTIFICATIONS_LOG_FILTER_MAPPING,
3232
tracing_settings=settings.NOTIFICATIONS_TRACING,
3333
)
3434

services/notifications/src/simcore_service_notifications/core/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
6767
),
6868
]
6969

70+
NOTIFICATIONS_WORKER_MODE: Annotated[
71+
bool, Field(description="If True, run as a worker")
72+
] = False
73+
7074
NOTIFICATIONS_POSTGRES: Annotated[
7175
PostgresSettings,
7276
Field(

0 commit comments

Comments
 (0)