diff --git a/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/exception/AbstractExceptionDebugger.java b/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/exception/AbstractExceptionDebugger.java index 56ae15c44cc..eb8abc565de 100644 --- a/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/exception/AbstractExceptionDebugger.java +++ b/dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/exception/AbstractExceptionDebugger.java @@ -55,7 +55,7 @@ public abstract class AbstractExceptionDebugger implements DebuggerContext.Excep public void handleException(Throwable t, AgentSpan span) { if (!shouldHandleException(t, span)) { if (LOGGER.isDebugEnabled()) { - LOGGER.debug("Skip handling exception: {}", t.toString()); + LOGGER.debug("Skip handling exception: {}", t.getClass().getTypeName()); } return; } @@ -75,7 +75,8 @@ public void handleException(Throwable t, AgentSpan span) { ExceptionProbeManager.ThrowableState state = exceptionProbeManager.getStateByThrowable(innerMostException); if (state == null) { - LOGGER.debug("Unable to find state for throwable: {}", innerMostException.toString()); + LOGGER.debug( + "Unable to find state for throwable: {}", innerMostException.getClass().getTypeName()); return; } processSnapshotsAndSetTags(