Add log for debugger
authoryoubowu <wu.youbo@zte.com.cn>
Fri, 10 Mar 2017 09:03:25 +0000 (17:03 +0800)
committer6092002067 <wu.youbo@zte.com.cn>
Fri, 10 Mar 2017 09:06:51 +0000 (17:06 +0800)
Issue-ID: HOLMES-50

Change-Id: I8a326f66f14fc107d6d56250dedc26c3e8ad4723
Signed-off-by: youbowu <wu.youbo@zte.com.cn>
rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java

index c351bbb..25b5ad2 100644 (file)
@@ -73,6 +73,7 @@ public class EngineWrapper {
 \r
     public boolean checkRuleFromEngine(CorrelationCheckRule4Engine correlationCheckRule4Engine)\r
             throws CorrelationException {\r
+        log.info("content:" + correlationCheckRule4Engine.getContent());\r
         HttpResponse httpResponse;\r
         try {\r
             httpResponse = engineService.check(correlationCheckRule4Engine);\r
@@ -88,7 +89,7 @@ public class EngineWrapper {
                         .toString(httpResponse.getEntity()));\r
                 throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CHECK_NO_PASS);\r
             } catch (IOException e) {\r
-                throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CHECK_NO_PASS);\r
+                throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CHECK_NO_PASS, e);\r
             }\r
         }\r
     }\r