Skip to content

Commit

Permalink
chore(backpressure): log it on back pressure (#2164)
Browse files Browse the repository at this point in the history
Signed-off-by: Ning Yu <ningyu@automq.com>
  • Loading branch information
Chillax-0v0 authored Nov 20, 2024
1 parent ff3b68e commit 3073399
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ private LoadLevel currentLoadLevel() {
}

private void regulate(LoadLevel loadLevel, long now) {
if (LoadLevel.NORMAL.equals(loadLevel) && LOGGER.isDebugEnabled()) {
LOGGER.debug("The system is in a normal state, checkers: {}", loadLevels);
} else {
LOGGER.info("The system is in a {} state, checkers: {}", loadLevel, loadLevels);
}

loadLevel.regulate(regulator);
lastRegulateTime = now;
}
Expand Down

0 comments on commit 3073399

Please sign in to comment.