Log the whole exception when transformation fails
MODIFY
javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AgentInstaller.java
javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AgentInstaller.java
@@ -345,10 +345,10 @@ public class AgentInstaller {
Throwable throwable) {
if (log.isDebugEnabled()) {
log.debug(
- "Failed to handle {} for transformation on classloader {}: {}",
+ "Failed to handle {} for transformation on classloader {}",
typeName,
classLoader,
- throwable.getMessage());
+ throwable);
}
}

Log the whole exception when transformation fails (#2852)