From 66421c69398125ae5297c52b5ec2b31fe652af35 Mon Sep 17 00:00:00 2001 From: M Valla <12682715+mvalla@users.noreply.github.com> Date: Sat, 28 Nov 2020 16:50:10 +0100 Subject: [PATCH] [openwebnet] Improved logging info>warn (#9159) Signed-off-by: Massimo Valla --- .../binding/openwebnet/handler/OpenWebNetBridgeHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/handler/OpenWebNetBridgeHandler.java b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/handler/OpenWebNetBridgeHandler.java index d57a84c68..d678be295 100644 --- a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/handler/OpenWebNetBridgeHandler.java +++ b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/handler/OpenWebNetBridgeHandler.java @@ -139,7 +139,7 @@ public class OpenWebNetBridgeHandler extends ConfigStatusBridgeHandler implement OpenWebNetZigBeeBridgeConfig zbBridgeConfig = getConfigAs(OpenWebNetZigBeeBridgeConfig.class); String serialPort = zbBridgeConfig.getSerialPort(); if (serialPort == null || serialPort.isEmpty()) { - logger.info("Cannot connect ZigBee USB Gateway. No serial port has been provided in Bridge configuration."); + logger.warn("Cannot connect ZigBee USB Gateway. No serial port has been provided in Bridge configuration."); updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.conf-error-no-serial-port"); return null; @@ -156,7 +156,7 @@ public class OpenWebNetBridgeHandler extends ConfigStatusBridgeHandler implement OpenWebNetBusBridgeConfig busBridgeConfig = getConfigAs(OpenWebNetBusBridgeConfig.class); String host = busBridgeConfig.getHost(); if (host == null || host.isEmpty()) { - logger.info("Cannot connect to BUS Gateway. No host/IP has been provided in Bridge configuration."); + logger.warn("Cannot connect to BUS Gateway. No host/IP has been provided in Bridge configuration."); updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.conf-error-no-ip-address"); return null; @@ -181,7 +181,7 @@ public class OpenWebNetBridgeHandler extends ConfigStatusBridgeHandler implement logger.debug("handleCommand (command={} - channel={})", command, channelUID); OpenGateway gw = gateway; if (gw != null && !gw.isConnected()) { - logger.info("Gateway is NOT connected, skipping command"); + logger.warn("Gateway is NOT connected, skipping command"); return; } else { logger.warn("Channel not supported: channel={}", channelUID);