Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 6d20b64

Browse files
authored
Add exception source data to logging output for easier debugging (#942)
1 parent 67502e5 commit 6d20b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opencensus/metrics/transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def func(*aa, **kw):
7171
except TransportError as ex:
7272
logger.exception(ex)
7373
self.cancel()
74-
except Exception:
75-
logger.exception("Error handling metric export")
74+
except Exception as ex:
75+
logger.exception("Error handling metric export: {}".format(ex))
7676

7777
super(PeriodicMetricTask, self).__init__(
7878
interval, func, args, kwargs, '{} Worker'.format(name)

0 commit comments

Comments
 (0)