Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
fix(trace): show always exception in case of fail to send trace (#397)
Browse files Browse the repository at this point in the history
* fix(trace): show always exception in case of fail to send trace

* fix(trace): show the traceback only on debug
  • Loading branch information
sagivr2020 committed Feb 7, 2022
1 parent 4fba932 commit 358b092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions epsagon/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,13 +1144,13 @@ def _send_traces(self):
)

except Exception as exception:
if self.debug:
print(
print(
'Failed to send trace: '
'updating events resource metadata failed: {}'.format(
exception
)
)
if self.debug:
traceback.print_exc()
return

Expand Down

0 comments on commit 358b092

Please sign in to comment.