http回调失败用error打印日志
This commit is contained in:
@@ -87,8 +87,8 @@ public class HttpUtils {
|
|||||||
}
|
}
|
||||||
System.out.println(logText);
|
System.out.println(logText);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
LOG.info(logText);
|
LOG.error(logText);
|
||||||
LOG.info("POST to {} with data {} failure", url, jsonStr);
|
LOG.error("POST to {} with data {} failure", url, jsonStr);
|
||||||
if(httpCallback != null) {
|
if(httpCallback != null) {
|
||||||
httpCallback.onFailure(-1, e.getMessage());
|
httpCallback.onFailure(-1, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user