Skip to content

Commit

Permalink
fix missing locals shortening to items with "trace_chain" instead of …
Browse files Browse the repository at this point in the history
…"trace"
  • Loading branch information
terencehonles committed Jan 26, 2021
1 parent 31095a3 commit 8367040
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rollbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,11 @@ def init(access_token, environment='production', scrub_fields=None, url_fields=N
]

if SETTINGS['locals']['enabled']:
shortener_keys.append(('body', 'trace', 'frames', '*', 'code'))
shortener_keys.append(('body', 'trace', 'frames', '*', 'args', '*'))
shortener_keys.append(('body', 'trace', 'frames', '*', 'kwargs', '*'))
shortener_keys.append(('body', 'trace', 'frames', '*', 'locals', '*'))
for prefix in (('body', 'trace'), ('body', 'trace_chain', '*')):
shortener_keys.append(prefix + ('frames', '*', 'code'))
shortener_keys.append(prefix + ('frames', '*', 'args', '*'))
shortener_keys.append(prefix + ('frames', '*', 'kwargs', '*'))
shortener_keys.append(prefix + ('frames', '*', 'locals', '*'))

shortener_keys.extend(SETTINGS['shortener_keys'])

Expand Down

0 comments on commit 8367040

Please sign in to comment.