Cleanup exception logging
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / impl / OvsdbClientImpl.java
index 0ea4e09365de3894c71d860b6b152f6e3ded24aa..72232df19efc482dd8f59902cff43a9fed045b88 100644 (file)
@@ -168,6 +168,7 @@ public class OvsdbClientImpl implements OvsdbClient {
         try {
             result = monitor.get();
         } catch (InterruptedException | ExecutionException e) {
+            LOG.warn("Failed to monitor {}", dbSchema, e);
             return null;
         }
         return transformingCallback(result, dbSchema);
@@ -199,6 +200,7 @@ public class OvsdbClientImpl implements OvsdbClient {
         try {
             result = monitor.get();
         } catch (InterruptedException | ExecutionException e) {
+            LOG.warn("Failed to monitor {}", dbSchema, e);
             return null;
         }
         return transformingCallback(result, dbSchema);
@@ -222,7 +224,7 @@ public class OvsdbClientImpl implements OvsdbClient {
         try {
             result = cancelMonitor.get();
         } catch (InterruptedException | ExecutionException e) {
-            LOG.error("Exception when canceling monitor handler {}", handler.getId());
+            LOG.error("Exception when canceling monitor handler {}", handler.getId(), e);
         }
 
         if (result == null) {
@@ -332,6 +334,7 @@ public class OvsdbClientImpl implements OvsdbClient {
                                 sfuture.set(schema);
                             }
                         } catch (Exception e) {
+                            LOG.warn("Failed to populate schema {}:{}", dbNames, schema, e);
                             sfuture.setException(e);
                         }
                         return null;