Use SLF4J instead of printStackTrace()
authorStephen Kitt <skitt@redhat.com>
Mon, 2 Nov 2015 07:56:15 +0000 (08:56 +0100)
committerStephen Kitt <skitt@redhat.com>
Mon, 2 Nov 2015 07:56:15 +0000 (08:56 +0100)
Change-Id: I0bcf68f963cdbaaac5de3e919c14134d2420ef35
Signed-off-by: Stephen Kitt <skitt@redhat.com>
utils/southbound-utils/src/main/java/org/opendaylight/ovsdb/utils/southbound/utils/SouthboundUtils.java

index 76c90549d84ec86a5e7b86d0dfb9ec43b197e03a..d1de4400b35b9687ba63659ce726b46ea186af56 100644 (file)
@@ -144,7 +144,7 @@ public class SouthboundUtils {
         try {
             Thread.sleep(OVSDB_UPDATE_TIMEOUT);
         } catch (InterruptedException e) {
-            e.printStackTrace();
+            LOG.warn("Interrupted while waiting after adding OVSDB node {}", connectionInfoToString(connectionInfo), e);
         }
         return result;
     }
@@ -161,7 +161,8 @@ public class SouthboundUtils {
         try {
             Thread.sleep(OVSDB_UPDATE_TIMEOUT);
         } catch (InterruptedException e) {
-            e.printStackTrace();
+            LOG.warn("Interrupted while waiting after deleting OVSDB node {}", connectionInfoToString(connectionInfo),
+                    e);
         }
         return result;
     }
@@ -240,7 +241,7 @@ public class SouthboundUtils {
         try {
             Thread.sleep(OVSDB_UPDATE_TIMEOUT);
         } catch (InterruptedException e) {
-            e.printStackTrace();
+            LOG.warn("Interrupted while waiting after deleting bridge {}", bridgeName, e);
         }
         return result;
     }