From 19909d1fd99688b76ae48ff7c5cd7ed7457897d7 Mon Sep 17 00:00:00 2001 From: Roi Rav-Hon Date: Wed, 23 May 2018 11:52:33 +0300 Subject: [PATCH] Remove the exception info from the formatting --- README.md | 1 + logzio/handler.py | 1 + setup.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b28f70..9ecc9a3 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,7 @@ LOGGING = { - appname - Your django app ## Release Notes +- 2.0.11 - Completely isolate exception from the message - 2.0.10 - Not ignoring formatting on exceptions - 2.0.9 - Support extra fields on exceptions too (Thanks @asafc64!) - 2.0.8 - Various PEP8, testings and logging changes (Thanks @nir0s!) diff --git a/logzio/handler.py b/logzio/handler.py index ac05da7..8767b61 100644 --- a/logzio/handler.py +++ b/logzio/handler.py @@ -90,6 +90,7 @@ class LogzioHandler(logging.Handler): # We want to ignore default logging formatting on exceptions # As we handle those differently directly into exception field message.exc_info = None + message.exc_text = None formatted_message = self.format(message) if isinstance(formatted_message, dict): diff --git a/setup.py b/setup.py index 4cd2244..570f621 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages setup( name="logzio-python-handler", - version='2.0.10', + version='2.0.11', description="Logging handler to send logs to your Logz.io account with bulk SSL", keywords="logging handler logz.io bulk https", author="roiravhon",