Skip to content

Commit

Permalink
Update IndicesRequestCache.java
Browse files Browse the repository at this point in the history
Signed-off-by: Kiran Prakash <[email protected]>
  • Loading branch information
kiranprakash154 committed Apr 2, 2024
1 parent 93f67e4 commit 4087280
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,13 @@ class IndicesRequestCacheCleanupManager implements Closeable {
void updateStalenessThreshold(double stalenessThreshold) {
double oldStalenessThreshold = this.stalenessThreshold;
this.stalenessThreshold = stalenessThreshold;
logger.debug(" StalenessThreshold is updated from : " + oldStalenessThreshold + " to : " + this.stalenessThreshold);
if (logger.isDebugEnabled()) {
logger.debug(
"Staleness threshold for indices request cache changed to {} from {}",
this.stalenessThreshold,
oldStalenessThreshold
);
}
}

/**
Expand Down

0 comments on commit 4087280

Please sign in to comment.