Issue #5475 - Adding debug log output for asmVersion detect

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2020-10-20 10:07:43 -05:00
parent a3e3632340
commit 7155066d4a
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,10 @@ public class AnnotationParser
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)
{