Skip to content

Commit 28f1b40

Browse files
Merge pull request #34 from nvillalva/nvillalva/fmt-exception
Format error on exception handling
2 parents 2093e6b + 08eb31d commit 28f1b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightstep/recorder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ def _maybe_init_flush_thread(self):
127127

128128
def _fine(self, fmt, args):
129129
if self.verbosity >= 1:
130-
fmt_args = fmt.format(args)
130+
fmt_args = fmt.format(*args)
131131
print("[LightStep Tracer]: ", fmt_args)
132132

133133
def _finest(self, fmt, args):
134134
if self.verbosity >= 2:
135-
fmt_args = fmt.format(args)
135+
fmt_args = fmt.format(*args)
136136
print("[LightStep Tracer]: ", fmt_args)
137137

138138
def record_span(self, span):
@@ -289,7 +289,7 @@ def _flush_worker(self, connection):
289289
except Exception as e:
290290
self._fine(
291291
"Caught exception during report: {0}, stack trace: {1}",
292-
(e, traceback.format_exc(e)))
292+
(e, traceback.format_exc()))
293293
self._restore_spans(report_request.span_records)
294294
return False
295295

0 commit comments

Comments
 (0)