From ee7a170df79287aac3bccfead716377ec8600c5c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 17 Jun 2016 06:54:21 +0300 Subject: ignore connection errors in the db logger --- vk/utils/tracking/db/writer/log.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vk/utils') diff --git a/vk/utils/tracking/db/writer/log.py b/vk/utils/tracking/db/writer/log.py index 02697b7..faef29b 100644 --- a/vk/utils/tracking/db/writer/log.py +++ b/vk/utils/tracking/db/writer/log.py @@ -22,8 +22,9 @@ class Logger: logging.info(Logger._format_user_last_seen(user)) @staticmethod - def on_exception(e): - logging.exception(e) + def on_connection_error(e): + #logging.exception(e) + pass @staticmethod def _format_user(user): -- cgit v1.2.3