Skip to content

Commit

Permalink
correct algo
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelsz-rb committed Apr 16, 2024
1 parent 764ee1f commit 97c2a32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rollbar/lib/transforms/shortener.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def traverse_dict(self, d):
d = self._shorten_mapping(d, max_size)
for k, v in d.items():
if isinstance(v, dict):
self.traverse_dict(v)
max_size = self._get_max_size(v)
d[k] = self._shorten_mapping(v, max_size)
self.traverse_dict(d[k])
else:
d[k] = self._shorten(v)
return d
Expand Down

0 comments on commit 97c2a32

Please sign in to comment.