diff options
-rw-r--r-- | rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java | 4 |
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();
}
|