Browse Source

Remove the exception info from the formatting

opensearch
Roi Rav-Hon 7 years ago
parent
commit
19909d1fd9
3 changed files with 3 additions and 1 deletions
  1. +1
    -0
      README.md
  2. +1
    -0
      logzio/handler.py
  3. +1
    -1
      setup.py

+ 1
- 0
README.md View File

@ -147,6 +147,7 @@ LOGGING = {
- appname - Your django app - appname - Your django app
## Release Notes ## Release Notes
- 2.0.11 - Completely isolate exception from the message
- 2.0.10 - Not ignoring formatting on exceptions - 2.0.10 - Not ignoring formatting on exceptions
- 2.0.9 - Support extra fields on exceptions too (Thanks @asafc64!) - 2.0.9 - Support extra fields on exceptions too (Thanks @asafc64!)
- 2.0.8 - Various PEP8, testings and logging changes (Thanks @nir0s!) - 2.0.8 - Various PEP8, testings and logging changes (Thanks @nir0s!)


+ 1
- 0
logzio/handler.py View File

@ -90,6 +90,7 @@ class LogzioHandler(logging.Handler):
# We want to ignore default logging formatting on exceptions # We want to ignore default logging formatting on exceptions
# As we handle those differently directly into exception field # As we handle those differently directly into exception field
message.exc_info = None message.exc_info = None
message.exc_text = None
formatted_message = self.format(message) formatted_message = self.format(message)
if isinstance(formatted_message, dict): if isinstance(formatted_message, dict):


+ 1
- 1
setup.py View File

@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup( setup(
name="logzio-python-handler", 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", description="Logging handler to send logs to your Logz.io account with bulk SSL",
keywords="logging handler logz.io bulk https", keywords="logging handler logz.io bulk https",
author="roiravhon", author="roiravhon",


Loading…
Cancel
Save