Skip to content

Commit 154dc72

Browse files
committed
Change printlns to log statements
1 parent f220aba commit 154dc72

File tree

1 file changed

+2
-2
lines changed
  • libs/entitlement/asm-provider/src/main/java/org/elasticsearch/entitlement/instrumentation/impl

1 file changed

+2
-2
lines changed

libs/entitlement/asm-provider/src/main/java/org/elasticsearch/entitlement/instrumentation/impl/InstrumenterImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ public MethodVisitor visitMethod(int access, String name, String descriptor, Str
155155
var key = new MethodKey(className, name, Stream.of(Type.getArgumentTypes(descriptor)).map(Type::getInternalName).toList());
156156
var instrumentationMethod = checkMethods.get(key);
157157
if (instrumentationMethod != null) {
158-
// System.out.println("Will instrument method " + key);
158+
logger.debug("Will instrument {}", key);
159159
return new EntitlementMethodVisitor(Opcodes.ASM9, mv, isStatic, isCtor, descriptor, instrumentationMethod);
160160
} else {
161-
// System.out.println("Will not instrument method " + key);
161+
logger.trace("Will not instrument {}", key);
162162
}
163163
}
164164
return mv;

0 commit comments

Comments
 (0)