Skip to content

Commit

Permalink
Fix The first element of the queue cannot be deleted when an exceptio…
Browse files Browse the repository at this point in the history
…n occurs in the method processWithAccessKeyLogger (#9953)
  • Loading branch information
106umao committed Apr 28, 2022
1 parent 767620a commit b31eafc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ private void writeLogQueueToFile(String accessLog, Queue<AccessLogData> logQueue
processWithAccessKeyLogger(logQueue, file);
}
} catch (Exception e) {
logQueue.poll();
logger.error(e.getMessage(), e);
}
}
Expand Down

0 comments on commit b31eafc

Please sign in to comment.