http回调失败用error打印日志

This commit is contained in:
heavyrian2012
2022-10-12 17:08:35 +08:00
parent 898c4f2419
commit a2d4bf7d43
@@ -87,8 +87,8 @@ public class HttpUtils {
}
System.out.println(logText);
e.printStackTrace();
LOG.info(logText);
LOG.info("POST to {} with data {} failure", url, jsonStr);
LOG.error(logText);
LOG.error("POST to {} with data {} failure", url, jsonStr);
if(httpCallback != null) {
httpCallback.onFailure(-1, e.getMessage());
}