Skip to content

Commit

Permalink
Sentry ignore error prod release resolved (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh authored May 5, 2023
1 parent bde256d commit f64af52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fyle_partner_dashboard_api/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def traces_sampler(sampling_context):
return 0

return 0.5

@staticmethod
def before_send(event, hint):
if 'exc_info' in hint:
exc_type, exc_value, tb = hint['exc_info']
exc_value = hint['exc_info']
if isinstance(exc_value, (gevent.GreenletExit)):
return None
elif exc_value.args[0] in ['Error: 502']:
Expand Down

0 comments on commit f64af52

Please sign in to comment.