Browse Source

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
```
Brandon Philips 10 years ago
parent
commit
e71dc2e565
1 changed files with 1 additions and 1 deletions
  1. 1 1
      discovery/discovery.go

+ 1 - 1
discovery/discovery.go

@@ -252,7 +252,7 @@ func (d *discovery) checkCluster() ([]*client.Node, int, uint64, error) {
 func (d *discovery) logAndBackoffForRetry(step string) {
 func (d *discovery) logAndBackoffForRetry(step string) {
 	d.retries++
 	d.retries++
 	retryTime := time.Second * (0x1 << 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)
 	d.clock.Sleep(retryTime)
 }
 }