mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
discovery: fixup logline
before: ``` discovery: duringcluster status checkconnection tohttps://discovery.etcd.iotimed out, retrying in2s ``` after: ``` discovery: cluster status check: connection to https://discovery.etcd.io timed out, retrying in 2s ```
This commit is contained in:
parent
5787fabe5f
commit
e71dc2e565
@ -252,7 +252,7 @@ func (d *discovery) checkCluster() ([]*client.Node, int, uint64, error) {
|
||||
func (d *discovery) logAndBackoffForRetry(step string) {
|
||||
d.retries++
|
||||
retryTime := time.Second * (0x1 << d.retries)
|
||||
plog.Info("during", step, "connection to", d.url, "timed out, retrying in", retryTime)
|
||||
plog.Infof("%s: connection to %s timed out, retrying in %s", step, d.url, retryTime)
|
||||
d.clock.Sleep(retryTime)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user