debug: add startup print statements for plugin activation

This commit is contained in:
Agent Zero
2026-07-22 02:14:29 +02:00
parent 5116e79fb6
commit c2143eea19
2 changed files with 6 additions and 1 deletions
+3
View File
@@ -156,8 +156,11 @@ async def lifespan(app: FastAPI):
router = getattr(router_module, route_def.router_attr)
app.include_router(router)
plugin_record.active = True
plugin_record.status = "active"
print(f"[STARTUP] Activated plugin: {name} ({len(plugin.manifest.routes)} routes)", flush=True)
logger.info(f"Activated plugin: {name} ({len(plugin.manifest.routes)} routes)")
except Exception as exc:
print(f"[STARTUP] Failed to activate plugin {name}: {exc}", flush=True)
logger.warning(f"Failed to activate plugin {name}: {exc}")
await db.commit()