Skip to content

Commit

Permalink
Fix logging in ChannelCommandDescriptionProvider (openhab#4040)
Browse files Browse the repository at this point in the history
The class of the the broken provider should be logged, not the class of the command description.

Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K authored Jan 15, 2024
1 parent 5cea59b commit c82a9e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public ChannelCommandDescriptionProvider(final @Reference ItemChannelLinkRegistr
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;
}
Expand Down

0 comments on commit c82a9e6

Please sign in to comment.