Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8b4375b7
authored
May 20, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志上传时的日志输出
parent
69ae40f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
app/src/main/java/com/bgycc/smartcanteen/command/LogCommandWorker.java
+4
-1
No files found.
app/src/main/java/com/bgycc/smartcanteen/command/LogCommandWorker.java
View file @
8b4375b7
...
@@ -72,10 +72,13 @@ public class LogCommandWorker extends CommandWorker {
...
@@ -72,10 +72,13 @@ public class LogCommandWorker extends CommandWorker {
if
(
upload
(
logFile
))
{
if
(
upload
(
logFile
))
{
return
success
();
return
success
();
}
}
int
attemptCount
=
getRunAttemptCount
();
// 检查该任务的重试次数,若未超过限制,则重试
// 检查该任务的重试次数,若未超过限制,则重试
if
(
getRunAttemptCount
()
>=
MAX_RETRY_TIMES
)
{
if
(
attemptCount
>=
MAX_RETRY_TIMES
)
{
LogUtils
.
w
(
TAG
,
"超过重试限制,该上传任务失败"
);
return
failed
();
return
failed
();
}
}
LogUtils
.
w
(
TAG
,
"上传失败,当前重试次数: "
+
attemptCount
);
return
Result
.
retry
();
return
Result
.
retry
();
}
}
...
...
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