[chore](log) Adjust log level for replaying a batch editlog cost time(#41392) (#42182)

* `replay journal cost too much time` is a counter for replaying a batch
editlog it is normal that cost too much time, the warning level can make
confused

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
This commit is contained in:
Lei Zhang
2024-10-22 10:06:11 +08:00
committed by GitHub
parent c6b35ba9b8
commit 8ce65cab86

View File

@ -2870,8 +2870,8 @@ public class Env {
}
}
long cost = System.currentTimeMillis() - startTime;
if (cost >= 1000) {
LOG.warn("replay journal cost too much time: {} replayedJournalId: {}", cost, replayedJournalId);
if (LOG.isDebugEnabled() && cost >= 1000) {
LOG.debug("replay journal cost too much time: {} replayedJournalId: {}", cost, replayedJournalId);
}
return hasLog;