Commit 3b75c5c5 by huangfusuper

修改重试日志打印问题

parent f3e4d83d
...@@ -27,7 +27,7 @@ public class RequestUtil { ...@@ -27,7 +27,7 @@ public class RequestUtil {
log.info("------当前的请求的地址为:{}-------",requestUrl); log.info("------当前的请求的地址为:{}-------",requestUrl);
try { try {
HttpUtil.post(requestUrl, body, TIMEOUT_DEFAULT); HttpUtil.post(requestUrl, body, TIMEOUT_DEFAULT);
log.info("------{}请求成功,重试了{}次------",requestUrl,thisRetryCount); log.info("------{}请求成功,重试了{}次------",requestUrl,thisRetryCount-1);
}catch (Exception e) { }catch (Exception e) {
//当前重试次数 小于等于总共的重试次数时 //当前重试次数 小于等于总共的重试次数时
if(thisRetryCount <= retryTotalCount){ if(thisRetryCount <= retryTotalCount){
......
...@@ -33,7 +33,7 @@ public class PluginRequestUtil { ...@@ -33,7 +33,7 @@ public class PluginRequestUtil {
post.header(TOKEN_NAME, TOKEN_NAME); post.header(TOKEN_NAME, TOKEN_NAME);
post.header(HEADER_CONTENT_TYPE,"application/json"); post.header(HEADER_CONTENT_TYPE,"application/json");
post.body(body).execute(); post.body(body).execute();
log.info("------{}请求成功,重试了{}次------",requestUrl,thisRetryCount); log.info("------{}请求成功,重试了{}次------",requestUrl,thisRetryCount-1);
}catch (Exception e) { }catch (Exception e) {
//当前重试次数 小于等于总共的重试次数时 //当前重试次数 小于等于总共的重试次数时
if(thisRetryCount <= retryTotalCount){ if(thisRetryCount <= retryTotalCount){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment