diff options
-rw-r--r-- | track_status.py | 2 | ||||
-rw-r--r-- | vk/utils/tracking/db/writer/log.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/track_status.py b/track_status.py index 9935b64..7af17b7 100644 --- a/track_status.py +++ b/track_status.py @@ -41,7 +41,7 @@ if __name__ == '__main__': tracker.add_initial_status_handler(log.Logger.on_initial_status) tracker.add_status_update_handler(log.Logger.on_status_update) - tracker.add_connection_error_handler(log.Logger.on_exception) + tracker.add_connection_error_handler(log.Logger.on_connection_error) with csv.Writer(args.output) as csv_writer: 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): |