refactor!: LOG_LEVEL => IMMICH_LOG_LEVEL (#9557)

refactor: LOG_LEVEL => IMMICH_LOG_LEVEL
This commit is contained in:
Jason Rasmussen 2024-05-17 11:44:22 -04:00 committed by GitHub
parent 101bc290f9
commit 4807fc40a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View file

@ -41,7 +41,7 @@ class Settings(BaseSettings):
class LogSettings(BaseSettings):
log_level: str = "info"
immich_log_level: str = "info"
no_color: bool = False
class Config:
@ -77,7 +77,7 @@ LOG_LEVELS: dict[str, int] = {
settings = Settings()
log_settings = LogSettings()
LOG_LEVEL = LOG_LEVELS.get(log_settings.log_level.lower(), logging.INFO)
LOG_LEVEL = LOG_LEVELS.get(log_settings.immich_log_level.lower(), logging.INFO)
class CustomRichHandler(RichHandler):