From 84791e6b912fe3e046416d7f975033f30fb95c8c Mon Sep 17 00:00:00 2001 From: Interitio Date: Thu, 30 Oct 2025 22:24:12 +1000 Subject: [PATCH] (channel): Add basic logging to event --- subathon/channel.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subathon/channel.py b/subathon/channel.py index d6ebe0a..5e1590b 100644 --- a/subathon/channel.py +++ b/subathon/channel.py @@ -1,4 +1,5 @@ from typing import Optional, TypeAlias, TypedDict +import json from collections import defaultdict from datetime import datetime, timedelta @@ -255,3 +256,7 @@ class TimerChannel(Channel): }, 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)