Change log.Debug in goroutine for log.Info

This commit is contained in:
Diego Romar
2025-12-19 12:47:52 -03:00
parent 76c63d0dd2
commit 691a90516d

View File

@@ -476,11 +476,11 @@ func (e *Engine) Start(netbirdConfig *mgmProto.NetbirdConfig, mgmtURL *url.URL)
return
} else {
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
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 {
case <-time.After(d):