Show DNS lookup error, refers to #127
This commit is contained in:
@@ -13,7 +13,7 @@ func (c *configurator) WaitForUnbound() (err error) {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
c.logger.Warn("could not resolve %s (try %d of %d)", hostToResolve, try, maxTries)
|
c.logger.Warn("could not resolve %s (try %d of %d): %w", hostToResolve, try, maxTries, err)
|
||||||
time.Sleep(time.Duration(maxTries * 50 * time.Millisecond))
|
time.Sleep(time.Duration(maxTries * 50 * time.Millisecond))
|
||||||
}
|
}
|
||||||
return fmt.Errorf("Unbound does not seem to be working after %d tries", maxTries)
|
return fmt.Errorf("Unbound does not seem to be working after %d tries", maxTries)
|
||||||
|
|||||||
Reference in New Issue
Block a user