fix: use BaseException instead of Exception, up to 0.1.2

This commit is contained in:
jar3b 2019-08-23 11:08:50 +03:00
parent 98e9c9a122
commit 0702291c26
3 changed files with 14 additions and 2 deletions

View File

@ -5,3 +5,15 @@
```
git+https://gitlab.com/logag/logag-python-handler.git
```
in code:
```python
import logging
from xid import Xid
log = logging.getLogger()
try:
a = 1/0
except Exception as e:
log.warning("Test", exc_info=e, extra={'request_id': "123123123", 'xid': Xid().string})
```

View File

@ -63,5 +63,5 @@ class LogagHandler(logging.Handler):
}
self.__send_to_udp(json_)
except Exception as e:
except BaseException as e:
self.backup_handler.emit(record)

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='logag-python-handler',
version='0.1.1',
version='0.1.2',
packages=['logag_handler'],
url='https://gitlab.com/logag/logag-python-handler',
license='MIT',