http请求错误时不打印数据内容,防止内容泄露

This commit is contained in:
heavyrian2012
2022-11-19 09:31:22 +08:00
parent b5d8feab62
commit 17039bd3c1
@@ -88,7 +88,7 @@ public class HttpUtils {
System.out.println(logText);
e.printStackTrace();
LOG.error(logText);
LOG.error("POST to {} with data {} failure", url, jsonStr);
LOG.error("POST to {} failed", url);
if(httpCallback != null) {
httpCallback.onFailure(-1, e.getMessage());
}