Suppress warning messages (#15129)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
parent
2b393699bf
commit
ab0ea34d5a
@ -132,7 +132,7 @@ public class BPUPListener implements Runnable {
|
|||||||
@Nullable
|
@Nullable
|
||||||
String bondId = response.bondId;
|
String bondId = response.bondId;
|
||||||
if (bondId == null || !bondId.equalsIgnoreCase(bridgeHandler.getBridgeId())) {
|
if (bondId == null || !bondId.equalsIgnoreCase(bridgeHandler.getBridgeId())) {
|
||||||
logger.warn("Response isn't from expected Bridge! Expected: {} Got: {}",
|
logger.trace("Response isn't from expected Bridge! Expected: {} Got: {}",
|
||||||
bridgeHandler.getBridgeId(), bondId);
|
bridgeHandler.getBridgeId(), bondId);
|
||||||
} else {
|
} else {
|
||||||
bridgeHandler.setBridgeOnline(inPacket.getAddress().getHostAddress());
|
bridgeHandler.setBridgeOnline(inPacket.getAddress().getHostAddress());
|
||||||
@ -200,7 +200,7 @@ public class BPUPListener implements Runnable {
|
|||||||
BPUPUpdate update = transformUpdatePacket(packet);
|
BPUPUpdate update = transformUpdatePacket(packet);
|
||||||
if (update != null) {
|
if (update != null) {
|
||||||
if (!update.bondId.equalsIgnoreCase(bridgeHandler.getBridgeId())) {
|
if (!update.bondId.equalsIgnoreCase(bridgeHandler.getBridgeId())) {
|
||||||
logger.warn("Response isn't from expected Bridge! Expected: {} Got: {}", bridgeHandler.getBridgeId(),
|
logger.trace("Response isn't from expected Bridge! Expected: {} Got: {}", bridgeHandler.getBridgeId(),
|
||||||
update.bondId);
|
update.bondId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ public class BPUPListener implements Runnable {
|
|||||||
try {
|
try {
|
||||||
response = this.gsonBuilder.fromJson(responseJson, BPUPUpdate.class);
|
response = this.gsonBuilder.fromJson(responseJson, BPUPUpdate.class);
|
||||||
} catch (JsonParseException e) {
|
} catch (JsonParseException e) {
|
||||||
logger.warn("Error parsing json! {}", e.getMessage());
|
logger.debug("Error parsing json! {}", e.getMessage());
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
@ -276,7 +276,7 @@ public class BPUPListener implements Runnable {
|
|||||||
this.socket = s;
|
this.socket = s;
|
||||||
logger.trace("Datagram Socket reconnected using port {}.", s.getPort());
|
logger.trace("Datagram Socket reconnected using port {}.", s.getPort());
|
||||||
} catch (SocketException exception) {
|
} catch (SocketException exception) {
|
||||||
logger.warn("Problem creating new socket : {}", exception.getLocalizedMessage());
|
logger.trace("Problem creating new socket : {}", exception.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -194,7 +194,7 @@ public class BondHttpApi {
|
|||||||
try {
|
try {
|
||||||
response = request.send();
|
response = request.send();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.warn("Unable to execute device action {} against device {}: {}", deviceId, action, e.getMessage());
|
logger.debug("Unable to execute device action {} against device {}: {}", deviceId, action, e.getMessage());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -106,7 +106,7 @@ public class BondDiscoveryService extends AbstractDiscoveryService implements Th
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (BondException ignored) {
|
} catch (BondException ignored) {
|
||||||
logger.warn("Error getting devices for discovery: {}", ignored.getMessage());
|
logger.debug("Error getting devices for discovery: {}", ignored.getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
removeOlderResults(getTimestampOfLastScan());
|
removeOlderResults(getTimestampOfLastScan());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -230,7 +230,7 @@ public class BondBridgeHandler extends BaseBridgeHandler {
|
|||||||
logger.trace("could not read topic type from push update or type was not state.");
|
logger.trace("could not read topic type from push update or type was not state.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Can not read device Id from push update.");
|
logger.trace("Cannot read device Id from push update.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -283,7 +283,7 @@ public class BondBridgeHandler extends BaseBridgeHandler {
|
|||||||
*/
|
*/
|
||||||
public void setBridgeOnline(String bridgeAddress) {
|
public void setBridgeOnline(String bridgeAddress) {
|
||||||
if (!config.isValid()) {
|
if (!config.isValid()) {
|
||||||
logger.warn("Configuration error, cannot set the bridghe online without configuration");
|
logger.warn("Configuration error, cannot set the bridge online without configuration");
|
||||||
return;
|
return;
|
||||||
} else if (!config.ipAddress.equals(bridgeAddress)) {
|
} else if (!config.ipAddress.equals(bridgeAddress)) {
|
||||||
logger.debug("IP address of Bond {} has changed to {}", config.serialNumber, bridgeAddress);
|
logger.debug("IP address of Bond {} has changed to {}", config.serialNumber, bridgeAddress);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user