server sdk http request add log
This commit is contained in:
@@ -128,7 +128,7 @@ public class AdminHttpUtils extends JsonUtils {
|
||||
if (object != null) {
|
||||
jsonStr = gson.toJson(object);
|
||||
}
|
||||
LOG.info("http request content: {}", jsonStr);
|
||||
LOG.info("http request:{} content: {}", path, jsonStr);
|
||||
|
||||
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
||||
entity.setContentEncoding("UTF-8");
|
||||
|
||||
@@ -78,7 +78,7 @@ public class ChannelHttpUtils extends JsonUtils {
|
||||
if (object != null) {
|
||||
jsonStr = gson.toJson(object);
|
||||
}
|
||||
LOG.info("http request content: {}", jsonStr);
|
||||
LOG.info("http request:{} content: {}", path, jsonStr);
|
||||
|
||||
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
||||
entity.setContentEncoding("UTF-8");
|
||||
|
||||
@@ -79,7 +79,7 @@ public class RobotHttpUtils extends JsonUtils {
|
||||
if (object != null) {
|
||||
jsonStr = gson.toJson(object);
|
||||
}
|
||||
LOG.info("http request content: {}", jsonStr);
|
||||
LOG.info("http request:{} content: {}", path, jsonStr);
|
||||
|
||||
if(!StringUtil.isNullOrEmpty(jsonStr)) {
|
||||
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));
|
||||
|
||||
Reference in New Issue
Block a user