(channel): Add basic logging to event

This commit is contained in:
2025-10-30 22:24:12 +10:00
parent 7a9a47f11f
commit 84791e6b91

View File

@@ -1,4 +1,5 @@
from typing import Optional, TypeAlias, TypedDict from typing import Optional, TypeAlias, TypedDict
import json
from collections import defaultdict from collections import defaultdict
from datetime import datetime, timedelta from datetime import datetime, timedelta
@@ -255,3 +256,7 @@ class TimerChannel(Channel):
}, },
websocket=ws, websocket=ws,
) )
async def send_event(self, event, **kwargs):
logger.info(f"Sending websocket event: {json.dumps(event, indent=1)}")
await super().send_event(event, **kwargs)