From: GuangrongFu Date: Fri, 17 Feb 2017 01:27:34 +0000 (+0800) Subject: Log the Discarded Exception X-Git-Tag: release/mercury~44 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1ddc6d2f4b2761c0ecd836cfe76bf14c9ce27c18;p=holmes%2Frule-management.git Log the Discarded Exception Change-Id: I67e859751f59a9542e4ca384eb538cbf427f33b2 Issue-ID: HOLMES-13 Signed-off-by: GuangrongFu --- diff --git a/rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java b/rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java index 71bd812..8395df7 100644 --- a/rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java +++ b/rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java @@ -119,6 +119,7 @@ public class RuleMgtResources { throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale, e.getMessage())); } catch (Exception e) { + log.error("update rule:" + ruleUpdateRequest.getRuleId() + " failed", e); throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale, I18nProxy.RULE_MANAGEMENT_UNKNOWN_EXCEPTION)); }