REQ-2481: remove access
This commit is contained in:
parent
c80b673203
commit
9ac1629540
@ -80,7 +80,7 @@ public class ScanAndSendService {
|
||||
drainLogs(logQueue);
|
||||
break;
|
||||
} catch (TimeoutException e) {
|
||||
consumeLogs(logQueue);
|
||||
drainLogs(logQueue);
|
||||
}
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
@ -124,15 +124,6 @@ public class ScanAndSendService {
|
||||
}
|
||||
}
|
||||
|
||||
private void consumeLogs(BlockingQueue<String> logQueue) throws InterruptedException {
|
||||
for (int i = 0; i < 500; i++) {
|
||||
String message = logQueue.poll();
|
||||
if (message == null)
|
||||
break;
|
||||
log.info(message);
|
||||
}
|
||||
}
|
||||
|
||||
private SendJobInfo trySaveSendJobInfo(int estimatedCount) {
|
||||
String logFile = XxlJobFileAppender.contextHolder.get();
|
||||
if (!StringUtils.isNotBlank(logFile))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user