fix(logging): fix wrong getClass method.

This commit is contained in:
tueem committed 2025-03-17 14:13:00 +01:00
1 parent 4c5e28b679
commit faca21724c
2 files changed
+2 -2

No files matched your search

@@ -59,7 +59,7 @@ public class SlashCommandParser implements AnnotationParser {
.build(isAutoComplete); .build(isAutoComplete);
} }
logger.trace("Parsed using SlashCommandParser for method {} with the result:\n{}", ReflectionUtil.getFullMethodName(method), lastIdentifier.toString()); logger.trace("Parsed using SlashCommandParser for method {} with the result: {}", ReflectionUtil.getFullMethodName(method), lastIdentifier.toString());
consumer.accept((SlashCommandIdentifier) lastIdentifier); consumer.accept((SlashCommandIdentifier) lastIdentifier);
} }
@@ -102,6 +102,6 @@ public final class ReflectionUtil {
} }
public static String getFullMethodName(Method method) { public static String getFullMethodName(Method method) {
return method.getClass().getName() + "." + method.getName(); return method.getDeclaringClass().getName() + "." + method.getName();
} }
} }