Browse Source

Fix tests for 3.6

opensearch
TomasKuznetsov 7 years ago
parent
commit
e365b78d79
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      logzio/handler.py

+ 2
- 3
logzio/handler.py View File

@ -23,12 +23,11 @@ class LogzioHandler(logging.Handler):
def extra_fields(self, message): def extra_fields(self, message):
not_allowed_keys = ( 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', 'funcName', 'levelname', 'levelno', 'lineno', 'module',
'msecs', 'msecs', 'message', 'msg', 'name', 'pathname', 'process', 'msecs', 'msecs', 'message', 'msg', 'name', 'pathname', 'process',
'processName', 'relativeCreated', 'thread', 'threadName') 'processName', 'relativeCreated', 'thread', 'threadName')
if sys.version_info < (3, 0): if sys.version_info < (3, 0):
var_type = (basestring, bool, dict, float, int, long, list, type(None)) var_type = (basestring, bool, dict, float, int, long, list, type(None))
else: else:
@ -83,6 +82,6 @@ class LogzioHandler(logging.Handler):
return return_json return return_json
def emit(self, record): def emit(self, record):
self.logzio_sender.append(self.format_message(record)) self.logzio_sender.append(self.format_message(record))

Loading…
Cancel
Save