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>
pull/4049/head
J-N-K 2024-01-15 22:28:36 +01:00 committed by GitHub
parent 5cea59bfb1
commit c82a9e69dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}