diff options
author | youbowu <wu.youbo@zte.com.cn> | 2017-03-10 17:46:19 +0800 |
---|---|---|
committer | 6092002067 <wu.youbo@zte.com.cn> | 2017-03-10 17:46:19 +0800 |
commit | 201379a761ff220fedca34f15ba8150e87b9f44f (patch) | |
tree | d96244b2175d120f2bcae8b9ec31e08f81eed3a1 /rulemgt/src/main | |
parent | 077bea9a3e582e93c35f699b979d904fc6d51826 (diff) |
Add log for debugger
Issue-ID: HOLMES-50
Change-Id: I9af16649095b3370c2c357e8612b5256274b23fe
Signed-off-by: youbowu <wu.youbo@zte.com.cn>
Diffstat (limited to 'rulemgt/src/main')
-rw-r--r-- | rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java | 1 | ||||
-rw-r--r-- | rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java | 2 |
2 files changed, 3 insertions, 0 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 72e9a66..93c34f9 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 @@ -104,6 +104,7 @@ public class EngineService { httpRequestBase.setHeader("Content-Type", "text/html;charset=UTF-8");
httpRequestBase.setHeader("Accept", "application/json");
httpRequestBase.setHeader("Content-Type", "application/json");
+ httpRequestBase.setHeader("Content-Length","2000");
}
public byte[] getData(HttpEntity httpEntity) throws IOException {
diff --git a/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java b/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java index 25b5ad2..79c5c88 100644 --- a/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java +++ b/rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java @@ -89,6 +89,8 @@ public class EngineWrapper { .toString(httpResponse.getEntity()));
throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CHECK_NO_PASS);
} catch (IOException e) {
+ log.info(httpResponse.getStatusLine().getStatusCode() + "," + httpResponse.getStatusLine()
+ .getReasonPhrase());
throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CHECK_NO_PASS, e);
}
}
|