Skip to content

Commit a37bb38

Browse files
committed
fix log error throwable
Following DataDog#4619, the exception was not logged as before.
1 parent d4d12f7 commit a37bb38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent/DebuggerTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private byte[] writeClassFile(ClassLoader loader, String classFilePath, ClassNod
328328
try {
329329
classNode.accept(writer);
330330
} catch (Throwable t) {
331-
log.error("Cannot write classfile for class: {} Exception: ", classFilePath, t.getMessage());
331+
log.error("Cannot write classfile for class: {} Exception: ", classFilePath, t);
332332
}
333333
byte[] data = writer.toByteArray();
334334
dumpInstrumentedClassFile(classFilePath, data);

0 commit comments

Comments
 (0)