mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Move rebalance log statement from INFO to DEBUG
This commit is contained in:
parent
060dd49a95
commit
e8a2e56370
@ -48,12 +48,13 @@ func (s *ServerDetails) Key() *Key {
|
||||
|
||||
// String returns a string representation of ServerDetails
|
||||
func (s *ServerDetails) String() string {
|
||||
var serverAddr string
|
||||
var addrStr, networkStr string
|
||||
if s.Addr != nil {
|
||||
serverAddr = s.Addr.String() + s.Addr.Network()
|
||||
addrStr = s.Addr.String()
|
||||
networkStr = s.Addr.Network()
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s (Addr: %s) (DC: %s)", s.Name, serverAddr, s.Datacenter)
|
||||
return fmt.Sprintf("%s (Addr: %s/%s) (DC: %s)", s.Name, addrStr, networkStr, s.Datacenter)
|
||||
}
|
||||
|
||||
// IsConsulServer returns true if a serf member is a consul server. Returns a
|
||||
|
@ -384,7 +384,7 @@ FAILED_SERVER_DURING_REBALANCE:
|
||||
goto FAILED_SERVER_DURING_REBALANCE
|
||||
}
|
||||
|
||||
sm.logger.Printf("[INFO] server manager: Rebalanced %d servers, next active server is %s", len(serverCfg.servers), serverCfg.servers[0].String())
|
||||
sm.logger.Printf("[DEBUG] server manager: Rebalanced %d servers, next active server is %s", len(serverCfg.servers), serverCfg.servers[0].String())
|
||||
return
|
||||
}
|
||||
|
||||
@ -444,7 +444,7 @@ func (sm *ServerManager) Start() {
|
||||
for {
|
||||
select {
|
||||
case <-sm.rebalanceTimer.C:
|
||||
sm.logger.Printf("[INFO] server manager: Rebalancing server connections")
|
||||
//sm.logger.Printf("[INFO] server manager: Rebalancing server connections")
|
||||
sm.RebalanceServers()
|
||||
sm.refreshServerRebalanceTimer()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user