Fix a Critical issue from SONAR 77/9477/1
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Wed, 30 Aug 2017 15:02:25 +0000 (08:02 -0700)
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Wed, 30 Aug 2017 15:02:25 +0000 (08:02 -0700)
Rework the log and include the Exception in it to help the debugging

Change-Id: I8930a4bd65bf2cac48cb1fbf98fb17fe69b5d909
Issue-Id: CLAMP-43
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
src/main/java/org/onap/clamp/clds/client/PolicyClient.java

index 6095af1..22f215c 100644 (file)
@@ -324,8 +324,8 @@ public class PolicyClient {
                     versions.add(version);
                 } catch (Exception e) {
                     // just print warning - if n;o policies, version may be null
-                    logger.warn("warning: failed to parse policyConfig.getPolicyVersion()="
-                            + policyConfig.getPolicyVersion());
+                    logger.warn("Failed to parse due to an exception policyConfig.getPolicyVersion()="
+                            + policyConfig.getPolicyVersion(), e);
                 }
             }
             Collections.sort(versions);