From e365b78d790a4fa3f98626d71bcb7066adbeb28a Mon Sep 17 00:00:00 2001 From: TomasKuznetsov Date: Mon, 1 Jan 2018 16:10:17 +0200 Subject: [PATCH] Fix tests for 3.6 --- logzio/handler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/logzio/handler.py b/logzio/handler.py index e5bb314..0a2e52f 100644 --- a/logzio/handler.py +++ b/logzio/handler.py @@ -23,12 +23,11 @@ class LogzioHandler(logging.Handler): def extra_fields(self, message): not_allowed_keys = ( - 'args', 'asctime', 'created', 'exc_info', 'exc_text', 'filename', + 'args', 'asctime', 'created', 'exc_info', 'stack_info', 'exc_text', 'filename', 'funcName', 'levelname', 'levelno', 'lineno', 'module', 'msecs', 'msecs', 'message', 'msg', 'name', 'pathname', 'process', 'processName', 'relativeCreated', 'thread', 'threadName') - if sys.version_info < (3, 0): var_type = (basestring, bool, dict, float, int, long, list, type(None)) else: @@ -83,6 +82,6 @@ class LogzioHandler(logging.Handler): return return_json - def emit(self, record): self.logzio_sender.append(self.format_message(record)) +