Commit 09384622 authored by Florian Fittkau's avatar Florian Fittkau

print stack trace instead of just toString when exception occurs

parent e803bad6
package explorviz.live_trace_processing.probe;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.ByteBuffer;
import org.aspectj.lang.ProceedingJoinPoint;
......@@ -155,7 +157,10 @@ public abstract class AbstractAspect {
buffer.putLong(trace.getTraceId());
buffer.putInt(trace.getNextOrderId());
final int errorId = MonitoringStringRegistry.getIdForString(th.toString());
final StringWriter errors = new StringWriter();
th.printStackTrace(new PrintWriter(errors));
final int errorId = MonitoringStringRegistry.getIdForString(errors.toString());
buffer.putInt(errorId);
trace.decreaseStackDepthAndEndTraceIfNeccessary();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment