Skip to content

Commit

Permalink
Issue #5475 - Adding debug log output for asmVersion detect
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <[email protected]>
  • Loading branch information
joakime committed Oct 20, 2020
1 parent a3e3632 commit 7155066
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ private static int asmVersion()
int asmFieldId = asmVersion.get();
try
{
return (int)Opcodes.class.getField("ASM" + asmFieldId).get(null);
String fieldName = "ASM" + asmFieldId;
if (LOG.isDebugEnabled())
LOG.debug("Using ASM API from {}.{}", Opcodes.class.getName(), fieldName);
return (int)Opcodes.class.getField(fieldName).get(null);
}
catch (Throwable e)
{
Expand Down

0 comments on commit 7155066

Please sign in to comment.