Queer European MD passionate about IT
Explorar o código

Log "API" in case of TelegramError raised during API call

Davte %!s(int64=5) %!d(string=hai) anos
pai
achega
d44e410101
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      davtelepot/api.py

+ 1 - 1
davtelepot/api.py

@@ -153,7 +153,7 @@ class TelegramBot(object):
                         await response.json()  # Telegram returns json objects
                     )
                 except TelegramError as e:
-                    logging.error(f"{e}")
+                    logging.error(f"API {e}")
                     return e
                 except Exception as e:
                     logging.error(f"{e}", exc_info=True)