From 6a987062b9c88eddaedba3eeaa88ce3b657d4909 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 28 Mar 2016 14:04:04 -0700 Subject: [PATCH] Add log line re: server manager backing off and sleeping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- consul/server_manager/server_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/server_manager/server_manager.go b/consul/server_manager/server_manager.go index 5fa38704b..d54a3d0bb 100644 --- a/consul/server_manager/server_manager.go +++ b/consul/server_manager/server_manager.go @@ -312,7 +312,7 @@ FAILED_SERVER_DURING_REBALANCE: // the world a happy place again. if !foundHealthyServer { 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 time.Sleep(backoffDuration)