debug: add print statements to ai_ui_control on_activate
This commit is contained in:
@@ -46,11 +46,14 @@ class AIUIControlPlugin(BasePlugin):
|
||||
|
||||
async def on_activate(self, db, service_container, event_bus) -> None:
|
||||
"""Register the WebSocket manager in the service container on every activation."""
|
||||
print("[STARTUP] ai_ui_control on_activate called", flush=True)
|
||||
await super().on_activate(db, service_container, event_bus)
|
||||
print("[STARTUP] ai_ui_control super().on_activate done", flush=True)
|
||||
from app.plugins.builtins.ai_ui_control.websocket_manager import AIUIControlWSManager
|
||||
|
||||
ws_manager = AIUIControlWSManager()
|
||||
service_container.register("ai_ui_control_ws", ws_manager)
|
||||
print("[STARTUP] ai_ui_control WS manager registered in container", flush=True)
|
||||
logger.info("AI UI Control WebSocket manager registered")
|
||||
|
||||
async def on_deactivate(self, db, service_container, event_bus) -> None:
|
||||
|
||||
Reference in New Issue
Block a user