Fix logging in ChannelCommandDescriptionProvider (#4040)

The class of the the broken provider should be logged, not the class of the command description.

Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
J-N-K
2024-01-15 22:28:36 +01:00
committed by GitHub
parent 5cea59bfb1
commit c82a9e69dc
@@ -95,7 +95,7 @@ public class ChannelCommandDescriptionProvider implements CommandDescriptionProv
if (dynamicCommandDescription == originalCommandDescription) {
logger.error(
"Dynamic command description matches original command description. DynamicCommandDescriptionProvider implementations must never return the original command description. {} has to be fixed.",
dynamicCommandDescription.getClass());
dynamicCommandDescriptionProvider.getClass());
} else {
return dynamicCommandDescription;
}