Skip to content

Commit f36ecd2

Browse files
committed
log the exception to debug
1 parent 24bffdf commit f36ecd2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/instrumentation/CodeOriginInstrumentor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@
2020
import org.objectweb.asm.tree.LabelNode;
2121
import org.objectweb.asm.tree.LineNumberNode;
2222
import org.objectweb.asm.tree.MethodInsnNode;
23+
import org.slf4j.Logger;
24+
import org.slf4j.LoggerFactory;
2325

2426
public class CodeOriginInstrumentor extends Instrumentor {
2527
private static final String CAPTURE;
2628
private static final String MARKER;
29+
private static final Logger LOGGER = LoggerFactory.getLogger(CodeOriginInstrumentor.class);
2730

2831
static {
2932
String className = DebuggerContext.class.getName().replace('.', '/');
@@ -83,6 +86,7 @@ private AbstractInsnNode stripSetup() {
8386
methodNode.instructions = list;
8487
return insertionPoint;
8588
} catch (Exception e) {
89+
LOGGER.debug("Error in captureCodeOrigin: ", e);
8690
return null;
8791
}
8892
}

0 commit comments

Comments
 (0)