Skip to content

Commit 9d02f6b

Browse files
committed
settings
1 parent 3d209f1 commit 9d02f6b

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

services/storage/src/simcore_service_storage/application.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
""" Main's application module for simcore_service_storage service
1+
"""Main's application module for simcore_service_storage service
22
3-
Functions to create, setup and run an aiohttp application provided a settingsuration object
3+
Functions to create, setup and run an aiohttp application provided a settingsuration object
44
"""
55

66
import logging
@@ -74,7 +74,7 @@ def create(settings: Settings) -> web.Application:
7474
if settings.STORAGE_PROFILING:
7575
app.middlewares.append(profiling_middleware)
7676

77-
if settings.LOG_LEVEL == "DEBUG":
77+
if settings.STORAGE_LOG_LEVEL == "DEBUG":
7878
setup_dev_error_logger(app)
7979

8080
if settings.STORAGE_MONITORING_ENABLED:

services/storage/src/simcore_service_storage/settings.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,13 @@ class Settings(BaseCustomSettings, MixinLoggingSettings):
2424
STORAGE_HOST: str = "0.0.0.0" # nosec
2525
STORAGE_PORT: PortInt = TypeAdapter(PortInt).validate_python(8080)
2626

27-
LOG_LEVEL: Annotated[
27+
STORAGE_LOG_LEVEL: Annotated[
2828
LogLevel,
2929
Field(
3030
validation_alias=AliasChoices("STORAGE_LOGLEVEL", "LOG_LEVEL", "LOGLEVEL"),
3131
),
3232
] = LogLevel.INFO
3333

34-
STORAGE_MAX_WORKERS: PositiveInt = Field(
35-
8,
36-
description="Number of workers for the thead executor pool used in DatcoreWrapper",
37-
)
38-
3934
STORAGE_MONITORING_ENABLED: bool = False
4035
STORAGE_PROFILING: bool = False
4136

0 commit comments

Comments
 (0)