Skip to content

Commit

Permalink
Merge pull request #365 from terencehonles/fix-trace_chain-missing-fr…
Browse files Browse the repository at this point in the history
…om-shortener_keys

fix missing locals shortening on items with "trace_chain" instead of "trace"
  • Loading branch information
danielmorell committed Apr 28, 2023
2 parents fd15c2a + 33c330b commit 853ee85
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 @@ -425,10 +425,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 853ee85

Please sign in to comment.