Compare commits

...
Author SHA1 Message Date
Shroominic 1e21dce735 change to warning log 2026-01-06 18:23:01 +01:00
Shroominic b70b94b9b4 feat: add admin password warning log 2026-01-03 22:12:23 +01:00
+5
View File
@@ -62,6 +62,11 @@ async def lifespan(_: FastAPI) -> AsyncGenerator[None, None]:
async with create_session() as session:
s = await SettingsService.initialize(session)
if not s.admin_password:
logger.warning(
f"Admin password is not set. Visit {s.http_url or 'http://localhost:8000'}/admin to set the password."
)
# Apply app metadata from settings
try:
app.title = s.name