From b47dea99d588b768e4254f983123cfdce2ffbd5c Mon Sep 17 00:00:00 2001 From: "prakash.e@huawei.com" Date: Fri, 15 Apr 2022 11:43:04 +0530 Subject: 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 Change-Id: I4a41f509deb0c0aacb503caf23b46cecdeefb4f6 Signed-off-by: sharath reddy --- .../src/main/java/org/onap/cvc/csar/cc/VTPValidateCSARBase.java | 4 ++-- 1 file 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) { -- cgit 1.2.3-korg