haiku вайб 3

This commit is contained in:
dv 2026-04-08 11:52:42 +03:00
parent 47b0928b2a
commit e71e068cf0

View file

@ -1,3 +1,4 @@
import logging
from contextlib import asynccontextmanager from contextlib import asynccontextmanager
from fastapi import FastAPI from fastapi import FastAPI
@ -10,6 +11,12 @@ from app.routers import admin, alerts, auth, devices, events, global_devices, ob
from app.workers.monitor import start_monitor, stop_monitor from app.workers.monitor import start_monitor, stop_monitor
from app.workers.startup import recover_stale_tasks from app.workers.startup import recover_stale_tasks
# Configure logging to output to console
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
)
@asynccontextmanager @asynccontextmanager
async def lifespan(app: FastAPI): async def lifespan(app: FastAPI):