(channel): Add basic logging to event
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user