|
|
@ -86,12 +86,13 @@ 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 |
|
|
|
|
|
|
|
formatted_message = self.format(message) |
|
|
|
if isinstance(formatted_message, dict): |
|
|
|
return_json.update(formatted_message) |
|
|
|
else: |
|
|
|
formatted_message = self.format(message) |
|
|
|
if isinstance(formatted_message, dict): |
|
|
|
return_json.update(formatted_message) |
|
|
|
else: |
|
|
|
return_json['message'] = formatted_message |
|
|
|
return_json['message'] = formatted_message |
|
|
|
|
|
|
|
return_json.update(self.extra_fields(message)) |
|
|
|
return return_json |
|
|
|