From d19512e3ebf6e6c454107d109348817a364679a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 28 Aug 2019 11:41:51 +0200 Subject: [PATCH] debug logger for all received tg messages --- delojza.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/delojza.py b/delojza.py index 5acbe8d..c2a1c87 100755 --- a/delojza.py +++ b/delojza.py @@ -460,6 +460,8 @@ class DelojzaBot: return ytdl_res or raw_res def tg_handle(self, bot, update): + self.logger.debug(f"Received from: {update.message.from_user} ({update.message.chat.id}): " + + update.message.text) hashtags = self._get_hashtags(update.message) if hashtags: url_res = self.handle_urls(update.message, self._get_hashtags(update.message))