]> git.basschouten.com Git - openhab-addons.git/commitdiff
Suppress warning messages (#15129)
authormlobstein <michael.lobstein@gmail.com>
Tue, 14 Nov 2023 14:44:47 +0000 (08:44 -0600)
committerGitHub <noreply@github.com>
Tue, 14 Nov 2023 14:44:47 +0000 (15:44 +0100)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
bundles/org.openhab.binding.bondhome/src/main/java/org/openhab/binding/bondhome/internal/api/BPUPListener.java
bundles/org.openhab.binding.bondhome/src/main/java/org/openhab/binding/bondhome/internal/api/BondHttpApi.java
bundles/org.openhab.binding.bondhome/src/main/java/org/openhab/binding/bondhome/internal/discovery/BondDiscoveryService.java
bundles/org.openhab.binding.bondhome/src/main/java/org/openhab/binding/bondhome/internal/handler/BondBridgeHandler.java

index 6420772ee70439be2ac0602696d0aac61b6fcf3b..fc7b126d1297b4fd1d3ebf854497e9f1e232aba4 100644 (file)
@@ -132,7 +132,7 @@ public class BPUPListener implements Runnable {
                     @Nullable
                     String bondId = response.bondId;
                     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);
                     } else {
                         bridgeHandler.setBridgeOnline(inPacket.getAddress().getHostAddress());
@@ -200,7 +200,7 @@ public class BPUPListener implements Runnable {
         BPUPUpdate update = transformUpdatePacket(packet);
         if (update != null) {
             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);
             }
 
@@ -235,7 +235,7 @@ public class BPUPListener implements Runnable {
         try {
             response = this.gsonBuilder.fromJson(responseJson, BPUPUpdate.class);
         } catch (JsonParseException e) {
-            logger.warn("Error parsing json! {}", e.getMessage());
+            logger.debug("Error parsing json! {}", e.getMessage());
         }
         return response;
     }
@@ -276,7 +276,7 @@ public class BPUPListener implements Runnable {
                 this.socket = s;
                 logger.trace("Datagram Socket reconnected using port {}.", s.getPort());
             } catch (SocketException exception) {
-                logger.warn("Problem creating new socket : {}", exception.getLocalizedMessage());
+                logger.trace("Problem creating new socket : {}", exception.getLocalizedMessage());
             }
         }
     }
index 8dedf69df09e989b0bb1bd9a27a8f16ef20fad37..46423df31802e0329eb051caad91cd4b46af8a51 100644 (file)
@@ -194,7 +194,7 @@ public class BondHttpApi {
         try {
             response = request.send();
         } 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;
         }
 
index c32697ef3b9a7c3b058e5022a248ba7f5ed71c59..64551f0cbf85442dfc806e21027134c1fad1a1cb 100644 (file)
@@ -106,7 +106,7 @@ public class BondDiscoveryService extends AbstractDiscoveryService implements Th
                 }
             }
         } catch (BondException ignored) {
-            logger.warn("Error getting devices for discovery: {}", ignored.getMessage());
+            logger.debug("Error getting devices for discovery: {}", ignored.getMessage());
         } finally {
             removeOlderResults(getTimestampOfLastScan());
         }
index 35cd1806c2c0fcaa414f1f45ca18367555dff4e2..104fa9540a23739662e8dd1e1e5f12c67b214d8f 100644 (file)
@@ -230,7 +230,7 @@ public class BondBridgeHandler extends BaseBridgeHandler {
                 logger.trace("could not read topic type from push update or type was not state.");
             }
         } 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) {
         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;
         } else if (!config.ipAddress.equals(bridgeAddress)) {
             logger.debug("IP address of Bond {} has changed to {}", config.serialNumber, bridgeAddress);