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

Commit 358b092

Browse files
authored
fix(trace): show always exception in case of fail to send trace (#397)
* fix(trace): show always exception in case of fail to send trace * fix(trace): show the traceback only on debug
1 parent 4fba932 commit 358b092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

epsagon/trace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,13 +1144,13 @@ def _send_traces(self):
11441144
)
11451145

11461146
except Exception as exception:
1147-
if self.debug:
1148-
print(
1147+
print(
11491148
'Failed to send trace: '
11501149
'updating events resource metadata failed: {}'.format(
11511150
exception
11521151
)
11531152
)
1153+
if self.debug:
11541154
traceback.print_exc()
11551155
return
11561156

0 commit comments

Comments
 (0)