mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 01:36:46 +00:00
Change log.Debug in goroutine for log.Info
This commit is contained in:
@@ -476,11 +476,11 @@ func (e *Engine) Start(netbirdConfig *mgmProto.NetbirdConfig, mgmtURL *url.URL)
|
|||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
lastErr = pErr
|
lastErr = pErr
|
||||||
log.Debugf("populate DNS cache attempt %d failed: %v", attempts+1, pErr)
|
log.Infof("populate DNS cache attempt %d failed: %v", attempts+1, pErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
d := backoff + time.Duration(rand.Intn(500))*time.Millisecond
|
d := backoff + time.Duration(rand.Intn(500))*time.Millisecond
|
||||||
log.WithFields(log.Fields{"attempt": attempts + 1, "sleep": d}).Debug("populate DNS cache retrying")
|
log.WithFields(log.Fields{"attempt": attempts + 1, "sleep": d}).Info("populate DNS cache retrying")
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-time.After(d):
|
case <-time.After(d):
|
||||||
|
|||||||
Reference in New Issue
Block a user