From 6faa24099b058b8bcca5651a141b6dbb9ba5c6d5 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 28 Feb 2018 10:32:17 +0100 Subject: [PATCH] Mention errors are swallowed in events --- readthedocs/extra/basic/working-with-updates.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/readthedocs/extra/basic/working-with-updates.rst b/readthedocs/extra/basic/working-with-updates.rst index a6c0a529..33bda938 100644 --- a/readthedocs/extra/basic/working-with-updates.rst +++ b/readthedocs/extra/basic/working-with-updates.rst @@ -10,6 +10,16 @@ over what Telegram calls `updates`__, and are meant to ease simple and common usage when dealing with them, since there are many updates. Let's dive in! +.. note:: + + The library logs by default no output, and any exception that occurs + inside your handlers will be "hidden" from you to prevent the thread + from terminating (so it can still deliver events). You should enable + logging (``import logging; logging.basicConfig(level=logging.ERROR)``) + when working with events, at least the error level, to see if this is + happening so you can debug the error. + + .. contents::