Skip to content

Commit

Permalink
Merge pull request getsentry#788 from getsentry/formatted-messages
Browse files Browse the repository at this point in the history
Add formatted attribute to message events
  • Loading branch information
dcramer authored Jun 9, 2016
2 parents 1caf614 + 3996bf2 commit 97330b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions raven/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def capture(self, message, params=(), formatted=None, **kwargs):
self.name: {
'message': message,
'params': self.transform(params),
'formatted': formatted,
},
}
if 'message' not in data:
Expand Down
6 changes: 5 additions & 1 deletion tests/transport/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ def test_build_then_send(self):
msg = c.build_msg('raven.events.Message', message='foo', date=d)
expected = {
'project': '1',
'sentry.interfaces.Message': {'message': 'foo', 'params': ()},
'sentry.interfaces.Message': {
'message': 'foo',
'params': (),
'formatted': None,
},
'server_name': 'test_server',
'level': 40,
'tags': {},
Expand Down

0 comments on commit 97330b6

Please sign in to comment.