mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor!: LOG_LEVEL => IMMICH_LOG_LEVEL (#9557)
refactor: LOG_LEVEL => IMMICH_LOG_LEVEL
This commit is contained in:
parent
101bc290f9
commit
4807fc40a6
6 changed files with 9 additions and 9 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue