haiku вайб 3
This commit is contained in:
parent
47b0928b2a
commit
e71e068cf0
1 changed files with 7 additions and 0 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue