Skip to content

Commit

Permalink
Correct behavior of level when it is passed into kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Aug 24, 2012
1 parent 63d32e0 commit 836df9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raven/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def build_msg(self, event_type, data=None, date=None,
)

if not data.get('level'):
data['level'] = logging.ERROR
data['level'] = kwargs.get('level') or logging.ERROR
data['modules'] = get_versions(self.include_paths)
data['server_name'] = self.name
data['tags'] = tags
Expand Down

0 comments on commit 836df9a

Please sign in to comment.