[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:
LukasA83 2021-12-27 19:59:47 +01:00 committed by GitHub
parent e087bac902
commit 9b70cf0be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}