Skip to content

Commit 10a78dd

Browse files
committed
Respect log level overriding from kwargs in Exception handler
1 parent d0bd88f commit 10a78dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raven/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def capture(self, exc_info=None, **kwargs):
6767
exc_type = getattr(exc_type, '__name__', '<unknown>')
6868

6969
return {
70-
'level': logging.ERROR,
70+
'level': kwargs.get('level', logging.ERROR),
7171
'sentry.interfaces.Exception': {
7272
'value': to_unicode(exc_value),
7373
'type': str(exc_type),

0 commit comments

Comments
 (0)