From 53e06b77ed962367adb46bf79ed6d5d191fec3cf Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Sun, 12 Mar 2017 00:14:20 +0800 Subject: Add Logs for Result Checking Change-Id: Ib269da8460b6fd8fdf1845d1e7ba1521a7863ace Issue-ID: HOLMES-50 Signed-off-by: GuangrongFu --- .../java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rulemgt') diff --git a/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java b/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java index 382b570..3f0e661 100644 --- a/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java +++ b/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java @@ -120,6 +120,8 @@ public class EngineService { } public byte[] getData(HttpEntity httpEntity) throws IOException { + log.info("Rule deployed. Package name: " + httpEntity.getContent().toString() + + ". Content length: " + httpEntity.getContentLength()); BufferedHttpEntity bufferedHttpEntity = new BufferedHttpEntity(httpEntity); ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); bufferedHttpEntity.writeTo(byteArrayOutputStream); -- cgit 1.2.3-korg