File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 14
14
import warnings
15
15
16
16
from basictracer .recorder import SpanRecorder
17
- from opentracing .logs import ERROR_KIND , STACK , ERROR_OBJECT
17
+ from opentracing .logs import ERROR_KIND , STACK
18
18
19
19
from lightstep .http_converter import HttpConverter
20
20
from lightstep .thrift_converter import ThriftConverter
@@ -171,11 +171,7 @@ def _normalize_log(self, log):
171
171
log .key_values [ERROR_KIND ] = util ._format_exc_type (log .key_values [ERROR_KIND ])
172
172
173
173
if STACK in log .key_values :
174
- log .key_values [STACK ] = util ._format_exc_tb (
175
- log .key_values .get (ERROR_OBJECT ),
176
- log .key_values .get (ERROR_KIND ),
177
- log .key_values [STACK ]
178
- )
174
+ log .key_values [STACK ] = util ._format_exc_tb (log .key_values [STACK ])
179
175
180
176
return log
181
177
Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ def _coerce_to_unicode(val):
105
105
return '(encoding error)'
106
106
107
107
108
- def _format_exc_tb (exc_value , exc_type , exc_tb ):
108
+ def _format_exc_tb (exc_tb ):
109
109
if type (exc_tb ) is types .TracebackType :
110
- return '' .join (traceback .format_exception ( exc_value , exc_type , exc_tb ))
110
+ return '' .join (traceback .format_tb ( exc_tb ))
111
111
112
112
return exc_tb
113
113
You can’t perform that action at this time.
0 commit comments