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

This commit is contained in:
ascrutae 2016-01-28 10:28:14 +08:00
parent 77f3e2f4a9
commit 2cf270b5bd
1 changed files with 1 additions and 2 deletions

View File

@ -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());