Fix sonar warnings in sal-distributed-datastore
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / entityownership / selectionstrategy / EntityOwnerSelectionStrategyConfigReader.java
index 29ace2475427d6fb830f1a4a482eeca46da0b25c..126324fff04fe759e17af13e6c158da335e53d2a 100644 (file)
@@ -64,7 +64,7 @@ public final class EntityOwnerSelectionStrategyConfigReader {
 
             LOG.debug("Could not read strategy configuration file, will use default configuration");
         } catch (IOException e1) {
-            LOG.warn("Failed to get configuration for {}, starting up empty", CONFIG_ID);
+            LOG.warn("Failed to get configuration for {}, starting up empty", CONFIG_ID, e1);
             return builder.build();
         } finally {
             try {
@@ -127,7 +127,7 @@ public final class EntityOwnerSelectionStrategyConfigReader {
         try {
             clazz = EntityOwnerSelectionStrategyConfigReader.class.getClassLoader().loadClass(strategyClassAndDelay);
         } catch (ClassNotFoundException e) {
-            throw new IllegalArgumentException("Failed to load strategy " + strategyClassAndDelay);
+            throw new IllegalArgumentException("Failed to load strategy " + strategyClassAndDelay, e);
         }
 
         Preconditions.checkArgument(EntityOwnerSelectionStrategy.class.isAssignableFrom(clazz),