mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-31 13:34:22 +02:00
[homematic] Improve error message when command sending fails (#18886)
In particular, suppress the exception stack trace. Fixes #18879 Signed-off-by: Danny Baumann <dannybaumann@web.de>
This commit is contained in:
+3
-2
@@ -346,10 +346,11 @@ public class HomematicThingHandler extends BaseThingHandler {
|
||||
if (dp != null && dp.getChannel().getDevice().isOffline()) {
|
||||
logger.warn("Device '{}' is OFFLINE, can't send command '{}' for channel '{}'",
|
||||
dp.getChannel().getDevice().getAddress(), command, channelUID);
|
||||
logger.trace("{}", ex.getMessage(), ex);
|
||||
} else {
|
||||
logger.error("{}", ex.getMessage(), ex);
|
||||
logger.error("Sending command '{}' for channel '{}' to device '{}' failed: {}", command, channelUID,
|
||||
dp.getChannel().getDevice().getAddress(), ex.getMessage());
|
||||
}
|
||||
logger.trace("{}", ex.getMessage(), ex);
|
||||
} catch (ConverterTypeException ex) {
|
||||
logger.warn("{}, please check the item type and the commands in your scripts", ex.getMessage());
|
||||
} catch (Exception ex) {
|
||||
|
||||
Reference in New Issue
Block a user