mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-02 22:13:11 -05:00
feat: adds descriptions to feature checks and add them to logs (#4504)
This commit is contained in:
@@ -64,20 +64,23 @@ async def lifespan_fn(_: FastAPI) -> AsyncGenerator[None, None]:
|
||||
settings.model_dump_json(
|
||||
indent=4,
|
||||
exclude={
|
||||
"LDAP_QUERY_PASSWORD",
|
||||
"OPENAI_API_KEY",
|
||||
"SECRET",
|
||||
"SESSION_SECRET",
|
||||
"SFTP_PASSWORD",
|
||||
"SFTP_USERNAME",
|
||||
"DB_URL", # replace by DB_URL_PUBLIC for logs
|
||||
"DB_PROVIDER",
|
||||
"SMTP_USER",
|
||||
"SMTP_PASSWORD",
|
||||
"OIDC_CLIENT_SECRET",
|
||||
},
|
||||
)
|
||||
)
|
||||
logger.info("------APP FEATURES------")
|
||||
logger.info("--------==SMTP==--------")
|
||||
logger.info(settings.SMTP_FEATURE)
|
||||
logger.info("--------==LDAP==--------")
|
||||
logger.info(settings.LDAP_FEATURE)
|
||||
logger.info("--------==OIDC==--------")
|
||||
logger.info(settings.OIDC_FEATURE)
|
||||
logger.info("-------==OPENAI==-------")
|
||||
logger.info(settings.OPENAI_FEATURE)
|
||||
logger.info("------------------------")
|
||||
|
||||
yield
|
||||
|
||||
|
||||
Reference in New Issue
Block a user