From 96302171677a66eb099426d60d9d3534b628f20e Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Wed, 30 Aug 2017 08:02:25 -0700 Subject: Fix a Critical issue from SONAR 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) --- src/main/java/org/onap/clamp/clds/client/PolicyClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/org/onap/clamp/clds/client/PolicyClient.java b/src/main/java/org/onap/clamp/clds/client/PolicyClient.java index 6095af15..22f215cc 100644 --- a/src/main/java/org/onap/clamp/clds/client/PolicyClient.java +++ b/src/main/java/org/onap/clamp/clds/client/PolicyClient.java @@ -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); -- cgit 1.2.3-korg