From b0f668e97f5c7529b0d4aec0df628828de4180ec Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Wed, 19 Feb 2025 00:26:18 +0100 Subject: [PATCH] Add debug --- src/modules/stream_notifications/messages_proc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/stream_notifications/messages_proc.py b/src/modules/stream_notifications/messages_proc.py index 4d158c5..9edd969 100644 --- a/src/modules/stream_notifications/messages_proc.py +++ b/src/modules/stream_notifications/messages_proc.py @@ -1,4 +1,3 @@ -import asyncio from enum import StrEnum import logging @@ -153,6 +152,8 @@ class MessagesProc: @classmethod def get_message_history_with_thread(cls, message_id: str) -> list[dict]: + logger.info(f"HISTORY: {cls.MESSAGE_HISTORY}") + message = next((message for message in cls.MESSAGE_HISTORY if message["id"] == message_id), None) if message is None: return []