From 9b70cf0be44ee7bbb2cee76ad5dd0f796bdbb4db Mon Sep 17 00:00:00 2001 From: LukasA83 <58861945+LukasA83@users.noreply.github.com> Date: Mon, 27 Dec 2021 19:59:47 +0100 Subject: [PATCH] [MQTT] Add additional logging information (#11849) * [MQTT] Add additional logging information Add additional logging information when command is not supported by type. Signed-off-by: Lukas Agethen --- .../java/org/openhab/binding/mqtt/generic/ChannelState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/ChannelState.java b/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/ChannelState.java index 88138a9c05e..8f01278e8f6 100644 --- a/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/ChannelState.java +++ b/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/ChannelState.java @@ -191,8 +191,8 @@ public class ChannelState implements MqttMessageSubscriber { try { cachedValue.update(command); } catch (IllegalArgumentException | IllegalStateException e) { - logger.warn("Command '{}' not supported by type '{}': {}", strValue, cachedValue.getClass().getSimpleName(), - e.getMessage()); + logger.warn("Command '{}' from channel '{}' not supported by type '{}': {}", strValue, channelUID, + cachedValue.getClass().getSimpleName(), e.getMessage()); receivedOrTimeout(); return; }