summaryrefslogtreecommitdiffstats
path: root/rulemgt/src
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2017-03-13 13:02:14 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2017-03-13 13:02:14 +0800
commit4c39f7390aebf3f8c6ca3b072dce0514a6cf8f99 (patch)
tree4c0b5dfeb322ba4fe103c708243c918da33ff920 /rulemgt/src
parent31815a746a4e2d695e3eadff5f8281148b68ac13 (diff)
Add Logs for Response
Change-Id: I242efc5b1d2174fa51274b98d0456003de88c875 Issue-ID: HOLMES-50 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt/src')
-rw-r--r--rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java4
1 files changed, 3 insertions, 1 deletions
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 4295069..21e29b3 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
@@ -106,7 +106,9 @@ public class EngineService {
if (StringUtils.isNotEmpty(content)) {
httpPut.setEntity(new ByteArrayEntity(content.getBytes()));
}
- return httpClient.execute(httpPut);
+ HttpResponse response = httpClient.execute(httpPut);
+ log.info("Return value for put request is " + EntityUtils.toString(response.getEntity()) + ".");
+ return response;
} finally {
httpClient.close();
}