From cb503f858112a7d6ff1b3b07e39d2bcdb6c72fb1 Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Thu, 9 Nov 2017 15:55:54 +0800 Subject: Add the Stacktrace into the Log Change-Id: Ib07c9f0b306eb77c7e27cf889d6e7f03f8fe583d Issue-ID: HOLMES-86 Signed-off-by: Guangrong Fu --- .../src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rulemgt') diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java index 146e034..9e324e6 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java @@ -80,7 +80,7 @@ public class RuleMgtWrapper { result = correlationRuleDao.saveRule(correlationRule); } catch (CorrelationException e) { engineWarpper.deleteRuleFromEngine(packageName); - throw new CorrelationException(e.getMessage()); + throw new CorrelationException(e.getMessage(), e); } RuleAddAndUpdateResponse ruleAddAndUpdateResponse = new RuleAddAndUpdateResponse(); ruleAddAndUpdateResponse.setRuleId(result.getRid()); -- cgit 1.2.3-korg