From d3ee46e88cc7e72117eff6f8f41d60237ec20330 Mon Sep 17 00:00:00 2001 From: Roi Rav-Hon Date: Wed, 9 May 2018 20:52:14 +0300 Subject: [PATCH] pep8 --- logzio/handler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/logzio/handler.py b/logzio/handler.py index 1be38d4..59840f2 100644 --- a/logzio/handler.py +++ b/logzio/handler.py @@ -72,7 +72,7 @@ class LogzioHandler(logging.Handler): def format_message(self, message): now = datetime.datetime.utcnow() timestamp = now.strftime('%Y-%m-%dT%H:%M:%S') + \ - '.%03d' % (now.microsecond / 1000) + 'Z' + '.%03d' % (now.microsecond / 1000) + 'Z' return_json = { 'logger': message.name, @@ -86,7 +86,9 @@ class LogzioHandler(logging.Handler): if message.exc_info: return_json['exception'] = self.format_exception(message.exc_info) - message.exc_info = None # We want to ignore logging format on exceptions, as we handle those differently + + # We want to ignore logging format on exceptions, as we handle those differently + message.exc_info = None formatted_message = self.format(message) if isinstance(formatted_message, dict):