mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user