sdk打印出请求的完整路径,方便问题排查
This commit is contained in:
@@ -128,7 +128,7 @@ public class AdminHttpUtils extends JsonUtils {
|
|||||||
if (object != null) {
|
if (object != null) {
|
||||||
jsonStr = gson.toJson(object);
|
jsonStr = gson.toJson(object);
|
||||||
}
|
}
|
||||||
LOG.info("http request:{} content: {}", path, jsonStr);
|
LOG.info("http request:{} content: {}", url, jsonStr);
|
||||||
|
|
||||||
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
||||||
entity.setContentEncoding("UTF-8");
|
entity.setContentEncoding("UTF-8");
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public class ChannelHttpUtils extends JsonUtils {
|
|||||||
if (object != null) {
|
if (object != null) {
|
||||||
jsonStr = gson.toJson(object);
|
jsonStr = gson.toJson(object);
|
||||||
}
|
}
|
||||||
LOG.info("http request:{} content: {}", path, jsonStr);
|
LOG.info("http request:{} content: {}", url, jsonStr);
|
||||||
|
|
||||||
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
||||||
entity.setContentEncoding("UTF-8");
|
entity.setContentEncoding("UTF-8");
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public class RobotHttpUtils extends JsonUtils {
|
|||||||
if (object != null) {
|
if (object != null) {
|
||||||
jsonStr = gson.toJson(object);
|
jsonStr = gson.toJson(object);
|
||||||
}
|
}
|
||||||
LOG.info("http request:{} content: {}", path, jsonStr);
|
LOG.info("http request:{} content: {}", url, jsonStr);
|
||||||
|
|
||||||
if(!StringUtil.isNullOrEmpty(jsonStr)) {
|
if(!StringUtil.isNullOrEmpty(jsonStr)) {
|
||||||
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
||||||
|
|||||||
Reference in New Issue
Block a user