From cc6c4a6eb98c2d2c082947511ef76f664da8dafb Mon Sep 17 00:00:00 2001 From: Bob Pasker Date: Thu, 31 Dec 2015 08:33:42 -0500 Subject: [PATCH] Change a print statement to use logger instead --- telegram/dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/dispatcher.py b/telegram/dispatcher.py index 1cd03050f..0a6ad16ce 100644 --- a/telegram/dispatcher.py +++ b/telegram/dispatcher.py @@ -183,7 +183,7 @@ class Dispatcher: # All other errors should not stop the thread, so just print them except: - print_exc() + self.logger.exception() self.logger.info('Dispatcher thread stopped')