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

@@ -4,4 +4,16 @@
```
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})
```