summaryrefslogtreecommitdiffstats
path: root/common-app-logging/src
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2020-06-12 13:01:57 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-06-19 11:13:09 +0000
commit61aa954c94ddb1b60cb57d1c9d4b0908e0929487 (patch)
treeb25f168b9599e4a81c584d884dad40ed29f2530f /common-app-logging/src
parent9ca59353f28ed9dcd6dbd7ece6063e7ff7d64cc8 (diff)
Fix Vulnerabilities
Fix the vulnerabilities reported by Sonar. Issue-ID: SDC-3114 Signed-off-by: xuegao <xg353y@intl.att.com> Change-Id: Icf97e427ef0c192b2f279380d7ee9eb570949d1f Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'common-app-logging/src')
-rw-r--r--common-app-logging/src/main/java/org/openecomp/sdc/common/log/wrappers/Logger.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/common-app-logging/src/main/java/org/openecomp/sdc/common/log/wrappers/Logger.java b/common-app-logging/src/main/java/org/openecomp/sdc/common/log/wrappers/Logger.java
index 8f733b4f5e..284104cd57 100644
--- a/common-app-logging/src/main/java/org/openecomp/sdc/common/log/wrappers/Logger.java
+++ b/common-app-logging/src/main/java/org/openecomp/sdc/common/log/wrappers/Logger.java
@@ -132,7 +132,7 @@ public class Logger implements org.slf4j.Logger {
metric.startTimer()
.stopTimer();
} catch (Exception e) {
- e.printStackTrace();
+ error(e.getMessage(), e);
}
metric.log(ONAPLogConstants.Markers.INVOKE_RETURN, LogLevel.INFO, msg, params);
}