mirror of https://github.com/status-im/consul.git
Add log line re: server manager backing off and sleeping
This is useful in situations where the RPC rotate duration is greater than 1µs. WTB exponential backoff of logging so we don't spam forever.
This commit is contained in:
parent
544a263a62
commit
6648d31579
|
@ -312,7 +312,7 @@ FAILED_SERVER_DURING_REBALANCE:
|
||||||
// the world a happy place again.
|
// the world a happy place again.
|
||||||
if !foundHealthyServer {
|
if !foundHealthyServer {
|
||||||
const backoffDuration = 1 * time.Second
|
const backoffDuration = 1 * time.Second
|
||||||
// sm.logger.Printf("[INFO] server manager: No servers available, sleeping for %v", backoffDuration)
|
sm.logger.Printf("[DEBUG] server manager: No servers available, sleeping for %v", backoffDuration)
|
||||||
|
|
||||||
// Sleep with no locks
|
// Sleep with no locks
|
||||||
time.Sleep(backoffDuration)
|
time.Sleep(backoffDuration)
|
||||||
|
|
Loading…
Reference in New Issue