Skip to content

Commit 6d9c91a

Browse files
briana-mcntiloc
authored andcommitted
Add exception source data to logging output for easier debugging (census-instrumentation#942)
1 parent db01eee commit 6d9c91a

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
@@ -69,8 +69,8 @@ def func(*aa, **kw):
6969
except TransportError as ex:
7070
logger.exception(ex)
7171
self.cancel()
72-
except Exception:
73-
logger.exception("Error handling metric export")
72+
except Exception as ex:
73+
logger.exception("Error handling metric export: {}".format(ex))
7474

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

0 commit comments

Comments
 (0)