sdk打印出请求的完整路径,方便问题排查

This commit is contained in:
heavyrian2012
2023-09-26 09:58:12 +08:00
parent 4e6188ee32
commit d13ed6f989
3 changed files with 3 additions and 3 deletions
@@ -128,7 +128,7 @@ public class AdminHttpUtils extends JsonUtils {
if (object != null) {
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"));
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: {}", path, jsonStr);
LOG.info("http request:{} content: {}", url, 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: {}", path, jsonStr);
LOG.info("http request:{} content: {}", url, jsonStr);
if(!StringUtil.isNullOrEmpty(jsonStr)) {
StringEntity entity = new StringEntity(jsonStr, Charset.forName("UTF-8"));