mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
remove trace
This commit is contained in:
@@ -1234,11 +1234,9 @@ func (c *Client) setupConsulSyncer() error {
|
||||
// providing a heartbeat that does contain a leader.
|
||||
if atomic.LoadInt32(&c.lastHeartbeatFromQuorum) == 1 && now.Before(c.consulPullHeartbeatDeadline) {
|
||||
c.heartbeatLock.Unlock()
|
||||
// c.logger.Printf("[TRACE] client.consul: heartbeat received, sleeping until %v", c.consulPullHeartbeatDeadline)
|
||||
return nil
|
||||
}
|
||||
c.heartbeatLock.Unlock()
|
||||
c.logger.Printf("[TRACE] client.consul: lost heartbeat with Nomad quorum, falling back to Consul for server list")
|
||||
|
||||
consulCatalog := c.consulSyncer.ConsulClient().Catalog()
|
||||
dcs, err := consulCatalog.Datacenters()
|
||||
|
||||
Reference in New Issue
Block a user