Add more context if a config push fails 19/15319/2
authorRobert Varga <rovarga@cisco.com>
Sat, 14 Feb 2015 09:48:09 +0000 (10:48 +0100)
committerRobert Varga <nite@hq.sk>
Sat, 14 Feb 2015 19:35:55 +0000 (19:35 +0000)
This adds the current state to the error message.

Change-Id: I3c165d7aae7dcb7dba4a374e17390d643c6ed40b
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/ConfigPushingRunnable.java

index 5c257effba14cfe740c7ad10d1d94527beaf0546..a32a0ac28fe5591435b2444a7a6d73589b5f287e 100644 (file)
@@ -33,7 +33,7 @@ public class ConfigPushingRunnable implements Runnable {
     @Override
     public void run() {
         List<Feature> toInstall = new ArrayList<Feature>();
-        FeatureEvent event;
+        FeatureEvent event = null;
         boolean interuppted = false;
         while(true) {
             try {
@@ -54,7 +54,7 @@ public class ConfigPushingRunnable implements Runnable {
                 LOG.error("ConfigPushingRunnable - interupted");
                 interuppted = true;
             } catch (Exception e) {
-                LOG.error("Exception while processing features ", e);
+                LOG.error("Exception while processing features {} event {}", toInstall, event, e);
             }
         }
     }