Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
3b75c5c5
Commit
3b75c5c5
authored
Aug 05, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改重试日志打印问题
parent
f3e4d83d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
RequestUtil.java
...utor-server/src/main/java/com/byit/utils/RequestUtil.java
+1
-1
PluginRequestUtil.java
...ommon/src/main/java/com/byit/utils/PluginRequestUtil.java
+1
-1
No files found.
byit-myth-executor/myth-executor-server/src/main/java/com/byit/utils/RequestUtil.java
View file @
3b75c5c5
...
...
@@ -27,7 +27,7 @@ public class RequestUtil {
log
.
info
(
"------当前的请求的地址为:{}-------"
,
requestUrl
);
try
{
HttpUtil
.
post
(
requestUrl
,
body
,
TIMEOUT_DEFAULT
);
log
.
info
(
"------{}请求成功,重试了{}次------"
,
requestUrl
,
thisRetryCount
);
log
.
info
(
"------{}请求成功,重试了{}次------"
,
requestUrl
,
thisRetryCount
-
1
);
}
catch
(
Exception
e
)
{
//当前重试次数 小于等于总共的重试次数时
if
(
thisRetryCount
<=
retryTotalCount
){
...
...
byit-plugin-core/byit-plugin-rpc-common/src/main/java/com/byit/utils/PluginRequestUtil.java
View file @
3b75c5c5
...
...
@@ -33,7 +33,7 @@ public class PluginRequestUtil {
post
.
header
(
TOKEN_NAME
,
TOKEN_NAME
);
post
.
header
(
HEADER_CONTENT_TYPE
,
"application/json"
);
post
.
body
(
body
).
execute
();
log
.
info
(
"------{}请求成功,重试了{}次------"
,
requestUrl
,
thisRetryCount
);
log
.
info
(
"------{}请求成功,重试了{}次------"
,
requestUrl
,
thisRetryCount
-
1
);
}
catch
(
Exception
e
)
{
//当前重试次数 小于等于总共的重试次数时
if
(
thisRetryCount
<=
retryTotalCount
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment