summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprakash.e@huawei.com <prakash.e@huawei.com>2022-04-15 11:43:04 +0530
committersharath reddy <bs.reddy@huawei.com>2022-05-09 14:36:13 +0530
commitb47dea99d588b768e4254f983123cfdce2ffbd5c (patch)
treecd9a92213c784b3a1969d4d4524eff7184323bd0
parent416534d85dddfd2ff1d6989b99d9fe28cbb71a92 (diff)
Log has to be removed while throwing exceptions
https://sonarcloud.io/project/issues?resolved=false&severities=MAJOR&id=onap_vnfsdk-validation&open=AW6lcX-6wQN7qqDOuZdv Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: I4a41f509deb0c0aacb503caf23b46cecdeefb4f6 Signed-off-by: sharath reddy <bs.reddy@huawei.com>
-rw-r--r--csarvalidation/src/main/java/org/onap/cvc/csar/cc/VTPValidateCSARBase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/VTPValidateCSARBase.java b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/VTPValidateCSARBase.java
index b004858..c2f329a 100644
--- a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/VTPValidateCSARBase.java
+++ b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/VTPValidateCSARBase.java
@@ -57,8 +57,8 @@ public abstract class VTPValidateCSARBase extends OnapCommand {
this.validateCSAR(csar);
} catch (Exception e) {
- LOG.error("{}: Failed to validate CSAR {}", this.getVnfReqsNo(), e);
- throw new OnapCommandExecutionFailed(e.getMessage());
+ String errorMsg = this.getVnfReqsNo() + ": Failed to validate CSAR " + e;
+ throw new OnapCommandExecutionFailed(errorMsg);
}
for (CSARError e: this.errors) {