Skip to content

Commit a5b39ef

Browse files
committed
missing validation of log level
1 parent 90d4205 commit a5b39ef

File tree

1 file changed

+5
-0
lines changed
  • services/director/src/simcore_service_director/core

1 file changed

+5
-0
lines changed

services/director/src/simcore_service_director/core/settings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ def _validate_substitutions(cls, v):
154154

155155
return v
156156

157+
@validator("DIRECTOR_LOGLEVEL", pre=True)
158+
@classmethod
159+
def _valid_log_level(cls, value: str) -> str:
160+
return cls.validate_log_level(value)
161+
157162

158163
def get_application_settings(app: FastAPI) -> ApplicationSettings:
159164
return cast(ApplicationSettings, app.state.settings)

0 commit comments

Comments
 (0)