From: LukasA83 <58861945+LukasA83@users.noreply.github.com> Date: Mon, 27 Dec 2021 18:59:47 +0000 (+0100) Subject: [MQTT] Add additional logging information (#11849) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=9b70cf0be44ee7bbb2cee76ad5dd0f796bdbb4db;p=openhab-addons.git [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 --- 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 88138a9c05..8f01278e8f 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; }