[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 <lukas83@gmx.de>
This commit is contained in:
parent
e087bac902
commit
9b70cf0be4
|
@ -191,8 +191,8 @@ public class ChannelState implements MqttMessageSubscriber {
|
||||||
try {
|
try {
|
||||||
cachedValue.update(command);
|
cachedValue.update(command);
|
||||||
} catch (IllegalArgumentException | IllegalStateException e) {
|
} catch (IllegalArgumentException | IllegalStateException e) {
|
||||||
logger.warn("Command '{}' not supported by type '{}': {}", strValue, cachedValue.getClass().getSimpleName(),
|
logger.warn("Command '{}' from channel '{}' not supported by type '{}': {}", strValue, channelUID,
|
||||||
e.getMessage());
|
cachedValue.getClass().getSimpleName(), e.getMessage());
|
||||||
receivedOrTimeout();
|
receivedOrTimeout();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue