[openwebnet] Improved logging info>warn (#9159)
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
This commit is contained in:
parent
2730bc8a2e
commit
66421c6939
|
@ -139,7 +139,7 @@ public class OpenWebNetBridgeHandler extends ConfigStatusBridgeHandler implement
|
||||||
OpenWebNetZigBeeBridgeConfig zbBridgeConfig = getConfigAs(OpenWebNetZigBeeBridgeConfig.class);
|
OpenWebNetZigBeeBridgeConfig zbBridgeConfig = getConfigAs(OpenWebNetZigBeeBridgeConfig.class);
|
||||||
String serialPort = zbBridgeConfig.getSerialPort();
|
String serialPort = zbBridgeConfig.getSerialPort();
|
||||||
if (serialPort == null || serialPort.isEmpty()) {
|
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,
|
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
|
||||||
"@text/offline.conf-error-no-serial-port");
|
"@text/offline.conf-error-no-serial-port");
|
||||||
return null;
|
return null;
|
||||||
|
@ -156,7 +156,7 @@ public class OpenWebNetBridgeHandler extends ConfigStatusBridgeHandler implement
|
||||||
OpenWebNetBusBridgeConfig busBridgeConfig = getConfigAs(OpenWebNetBusBridgeConfig.class);
|
OpenWebNetBusBridgeConfig busBridgeConfig = getConfigAs(OpenWebNetBusBridgeConfig.class);
|
||||||
String host = busBridgeConfig.getHost();
|
String host = busBridgeConfig.getHost();
|
||||||
if (host == null || host.isEmpty()) {
|
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,
|
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
|
||||||
"@text/offline.conf-error-no-ip-address");
|
"@text/offline.conf-error-no-ip-address");
|
||||||
return null;
|
return null;
|
||||||
|
@ -181,7 +181,7 @@ public class OpenWebNetBridgeHandler extends ConfigStatusBridgeHandler implement
|
||||||
logger.debug("handleCommand (command={} - channel={})", command, channelUID);
|
logger.debug("handleCommand (command={} - channel={})", command, channelUID);
|
||||||
OpenGateway gw = gateway;
|
OpenGateway gw = gateway;
|
||||||
if (gw != null && !gw.isConnected()) {
|
if (gw != null && !gw.isConnected()) {
|
||||||
logger.info("Gateway is NOT connected, skipping command");
|
logger.warn("Gateway is NOT connected, skipping command");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Channel not supported: channel={}", channelUID);
|
logger.warn("Channel not supported: channel={}", channelUID);
|
||||||
|
|
Loading…
Reference in New Issue