Log the Discarded Exception
authorGuangrongFu <fu.guangrong@zte.com.cn>
Fri, 17 Feb 2017 01:27:34 +0000 (09:27 +0800)
committerGuangrongFu <fu.guangrong@zte.com.cn>
Fri, 17 Feb 2017 01:27:34 +0000 (09:27 +0800)
Change-Id: I67e859751f59a9542e4ca384eb538cbf427f33b2
Issue-ID: HOLMES-13
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java

index 71bd812..8395df7 100644 (file)
@@ -119,6 +119,7 @@ public class RuleMgtResources {
             throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale,\r
                 e.getMessage()));\r
         } catch (Exception e) {\r
+            log.error("update rule:" + ruleUpdateRequest.getRuleId() + " failed", e);\r
             throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale,\r
                 I18nProxy.RULE_MANAGEMENT_UNKNOWN_EXCEPTION));\r
         }\r