Skip to content

Commit

Permalink
Correct trimming of frame vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Jun 7, 2013
1 parent f93aacb commit af251f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sentry/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,10 @@ def save_data(self, project, data):

# HACK: move this to interfaces code
if 'sentry.interfaces.Stacktrace' in data:
stack_vars = data['sentry.interfaces.Stacktrace'].get('vars', {})
for key, value in stack_vars.iteritems():
stack_vars[key] = trim(value)
for frame in data['sentry.interfaces.Stacktrace']['frames']:
stack_vars = frame.get('vars', {})
for key, value in stack_vars.iteritems():
stack_vars[key] = trim(value)

if 'sentry.interfaces.Exception' in data:
exc_data = data['sentry.interfaces.Exception']
Expand Down

0 comments on commit af251f4

Please sign in to comment.