Add more logging from karaf 82/43282/2
authorRobert Varga <rovarga@cisco.com>
Sun, 7 Aug 2016 21:12:37 +0000 (23:12 +0200)
committerStephen Kitt <skitt@redhat.com>
Mon, 8 Aug 2016 10:47:58 +0000 (10:47 +0000)
When a feature fails to install, we would really like
some context to the failure. This option will result
in an additional warning with exception being logged.

Change-Id: I44d44f1905e9b2f400dc31b33473b16d839b9874
Signed-off-by: Robert Varga <rovarga@cisco.com>
features-test/src/main/java/org/opendaylight/odlparent/featuretest/SingleFeatureTest.java

index adeff1f742c40ba7a3f79c444d078485fc1f4208..269f6e27db0f8c6a9aadf7f4450fbe0508d114c4 100644 (file)
@@ -306,7 +306,7 @@ public class SingleFeatureTest {
     public void installFeature() throws Exception {
         LOG.info("Attempting to install feature {} {}", getFeatureName(), getFeatureVersion());
         featuresService.installFeature(getFeatureName(), getFeatureVersion(),
-                EnumSet.of(FeaturesService.Option.NoCleanIfFailure));
+                EnumSet.of(FeaturesService.Option.NoCleanIfFailure, FeaturesService.Option.PrintExecptionPerFeature));
         Feature feature = featuresService.getFeature(getFeatureName(), getFeatureVersion());
         Assert.assertNotNull(
                 "Attempt to get feature " + getFeatureName() + " " + getFeatureVersion() + "resulted in null", feature);