44from models_library .basic_types import LogLevel
55from pydantic import AliasChoices , Field , field_validator
66from servicelib .logging_utils_filtering import LoggerName , MessageSubstring
7- from settings_library .application import BaseApplicationSettings
7+ from settings_library .base import BaseCustomSettings
88from settings_library .utils_logging import MixinLoggingSettings
99
1010
11- class Settings (BaseApplicationSettings , MixinLoggingSettings ):
11+ class Settings (BaseCustomSettings , MixinLoggingSettings ):
1212 """Dask-sidecar app settings"""
1313
1414 SC_BUILD_TARGET : str | None = None
@@ -20,7 +20,7 @@ class Settings(BaseApplicationSettings, MixinLoggingSettings):
2020 alias = "LOG_LEVEL" ,
2121 serialization_alias = "LOG_LEVEL" ,
2222 validation_alias = AliasChoices (
23- "SIDECAR_LOGLEVEL " , "LOG_LEVEL " , "DASK_SIDECAR_LOGLEVEL " , "LOGLEVEL"
23+ "DASK_SIDECAR_LOGLEVEL " , "SIDECAR_LOGLEVEL " , "LOG_LEVEL " , "LOGLEVEL"
2424 ),
2525 ),
2626 ]
@@ -46,13 +46,14 @@ class Settings(BaseApplicationSettings, MixinLoggingSettings):
4646 DASK_LOG_FORMAT_LOCAL_DEV_ENABLED : bool = Field (
4747 default = False ,
4848 validation_alias = AliasChoices (
49- "LOG_FORMAT_LOCAL_DEV_ENABLED" , "DASK_LOG_FORMAT_LOCAL_DEV_ENABLED"
49+ "DASK_LOG_FORMAT_LOCAL_DEV_ENABLED" ,
50+ "LOG_FORMAT_LOCAL_DEV_ENABLED" ,
5051 ),
5152 description = "Enables local development log format. WARNING: make sure it is disabled if you want to have structured logs!" ,
5253 )
5354 DASK_LOG_FILTER_MAPPING : dict [LoggerName , list [MessageSubstring ]] = Field (
5455 default_factory = dict ,
55- validation_alias = AliasChoices ("LOG_FILTER_MAPPING " , "DASK_LOG_FILTER_MAPPING " ),
56+ validation_alias = AliasChoices ("DASK_LOG_FILTER_MAPPING " , "LOG_FILTER_MAPPING " ),
5657 description = "is a dictionary that maps specific loggers (such as 'uvicorn.access' or 'gunicorn.access') to a list of log message patterns that should be filtered out." ,
5758 )
5859
0 commit comments