From e72d4872c044c9d9bb0415ed54b24fab6e229461 Mon Sep 17 00:00:00 2001 From: b3yond Date: Mon, 31 Dec 2018 15:27:11 +0100 Subject: [PATCH] more verbose telegram error messages --- active_bots/telegrambot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py index eb19be8..2e59da7 100644 --- a/active_bots/telegrambot.py +++ b/active_bots/telegrambot.py @@ -24,7 +24,9 @@ class TelegramBot(Bot): if update in [303, 404, 420, 500, 502]: return reports if isinstance(update, int): - logger.error("Unknown Telegram error code: " + str(update)) + logger.error("City " + user.uid + + ": Unknown Telegram error code: " + + str(update) + " - " + updates[1]) return reports user.save_seen_tg(update.update_id) if update.message.text.lower() == "/start":