http请求错误时不打印数据内容,防止内容泄露
This commit is contained in:
@@ -88,7 +88,7 @@ public class HttpUtils {
|
|||||||
System.out.println(logText);
|
System.out.println(logText);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
LOG.error(logText);
|
LOG.error(logText);
|
||||||
LOG.error("POST to {} with data {} failure", url, jsonStr);
|
LOG.error("POST to {} failed", url);
|
||||||
if(httpCallback != null) {
|
if(httpCallback != null) {
|
||||||
httpCallback.onFailure(-1, e.getMessage());
|
httpCallback.onFailure(-1, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user