From ba20f2ee02888287092f0f707c6bce174e7dc0c8 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Fri, 18 Apr 2025 21:43:56 +0300 Subject: [PATCH] add logs --- post_parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/post_parser.py b/post_parser.py index 0ef4db4..57a5ea3 100644 --- a/post_parser.py +++ b/post_parser.py @@ -291,7 +291,7 @@ class PostParser: return None def _format_reply_info(self, message: Message) -> Union[str, None]: - logger.error(f"Reply info: {str(message)}") + logger.error(f"_format_reply_info message: {str(message)}") if getattr(message, "service", None) and 'PINNED_MESSAGE' in str(message.service) and (reply_to := getattr(message, "reply_to_message", None)): reply_text = reply_to.text or reply_to.caption or '' if len(reply_text) > 100: @@ -546,6 +546,8 @@ class PostParser: if reply_html := self._format_reply_info(message): content_body.append(reply_html) + logger.error(f"_generate_html_body message: {str(message)}") + if message.text: text = message.text.html elif message.caption: text = message.caption.html else: text = ''