From 4bf2d09062a58b7346c731264355c4d264c171cf Mon Sep 17 00:00:00 2001 From: Roi Rav-Hon Date: Wed, 9 May 2018 20:56:54 +0300 Subject: [PATCH] More pep8 --- logzio/handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logzio/handler.py b/logzio/handler.py index 59840f2..7906123 100644 --- a/logzio/handler.py +++ b/logzio/handler.py @@ -87,7 +87,8 @@ class LogzioHandler(logging.Handler): if message.exc_info: return_json['exception'] = self.format_exception(message.exc_info) - # We want to ignore logging format on exceptions, as we handle those differently + # We want to ignore default logging formatting on exceptions + # As we handle those differently directly into exception field message.exc_info = None formatted_message = self.format(message)