Add log for debugger
[holmes/rule-management.git] / 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