提交 2cf270b5 编写于 作者: A ascrutae

修复Span的异常信息一级异常会被丢弃的情况

上级 77f3e2f4
......@@ -192,8 +192,7 @@ public class Span extends SpanData {
try {
buf = new ByteArrayOutputStream();
Throwable causeException = e;
while (expMessage.length() < maxExceptionStackLength && causeException != null
&& causeException.getCause() != null) {
while (expMessage.length() < maxExceptionStackLength && causeException != null) {
causeException.printStackTrace(new java.io.PrintWriter(buf,
true));
expMessage.append(buf.toString());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册