From 7a561603edf26a54e9a309e8fed64a7e6b4da722 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 17 Oct 2023 13:59:43 +0300 Subject: [PATCH] debug-notify --- services/presence.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/presence.py b/services/presence.py index d4e068a..00c131a 100644 --- a/services/presence.py +++ b/services/presence.py @@ -9,5 +9,6 @@ async def notify_message(message: Message, chat_id: str): data = {"payload": message, "kind": "new_message"} try: await redis.publish(channel_name, json.dumps(data)) + print(f"[services.presence] notification was sent successfully {data}") except Exception as e: print(f"Failed to publish to channel {channel_name}: {e}")