From c82a9e69dc73eed4a2a7f96e2232df907e3016c9 Mon Sep 17 00:00:00 2001 From: J-N-K Date: Mon, 15 Jan 2024 22:28:36 +0100 Subject: [PATCH] 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 --- .../core/thing/internal/ChannelCommandDescriptionProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/internal/ChannelCommandDescriptionProvider.java b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/internal/ChannelCommandDescriptionProvider.java index ac811b04db8..e7c76c9f15c 100644 --- a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/internal/ChannelCommandDescriptionProvider.java +++ b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/internal/ChannelCommandDescriptionProvider.java @@ -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; }