Commit 8b4375b7 by pye52

增加日志上传时的日志输出

parent 69ae40f0
......@@ -72,10 +72,13 @@ public class LogCommandWorker extends CommandWorker {
if (upload(logFile)) {
return success();
}
int attemptCount = getRunAttemptCount();
// 检查该任务的重试次数,若未超过限制,则重试
if (getRunAttemptCount() >= MAX_RETRY_TIMES) {
if (attemptCount >= MAX_RETRY_TIMES) {
LogUtils.w(TAG, "超过重试限制,该上传任务失败");
return failed();
}
LogUtils.w(TAG, "上传失败,当前重试次数: " + attemptCount);
return Result.retry();
}
......
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 sign in to comment