diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-08-30 08:02:25 -0700 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-08-30 08:02:25 -0700 |
commit | 96302171677a66eb099426d60d9d3534b628f20e (patch) | |
tree | 47d99d3a8e5ee77b1ba8d02edddc291a41e15a33 | |
parent | 81bcf96396d1903e0b7f4a55b2e4a9ed86b0f5d2 (diff) |
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) <sd378r@intl.att.com>
-rw-r--r-- | src/main/java/org/onap/clamp/clds/client/PolicyClient.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); |