Add Logs for Result Checking
authorGuangrongFu <fu.guangrong@zte.com.cn>
Sat, 11 Mar 2017 16:14:20 +0000 (00:14 +0800)
committerGuangrongFu <fu.guangrong@zte.com.cn>
Sat, 11 Mar 2017 16:14:20 +0000 (00:14 +0800)
Change-Id: Ib269da8460b6fd8fdf1845d1e7ba1521a7863ace
Issue-ID: HOLMES-50
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java

index 382b570..3f0e661 100644 (file)
@@ -120,6 +120,8 @@ public class EngineService {
     }\r
 \r
     public byte[] getData(HttpEntity httpEntity) throws IOException {\r
+        log.info("Rule deployed. Package name: " + httpEntity.getContent().toString()\r
+                + ". Content length: " + httpEntity.getContentLength());\r
         BufferedHttpEntity bufferedHttpEntity = new BufferedHttpEntity(httpEntity);\r
         ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r
         bufferedHttpEntity.writeTo(byteArrayOutputStream);\r