Using %s instead of %w for format print

This commit is contained in:
Quentin McGaw
2020-04-12 02:42:32 +00:00
parent ebdf241888
commit da8391e9ae

View File

@@ -13,7 +13,7 @@ func (c *configurator) WaitForUnbound() (err error) {
if err == nil {
return nil
}
c.logger.Warn("could not resolve %s (try %d of %d): %w", hostToResolve, try, maxTries, err)
c.logger.Warn("could not resolve %s (try %d of %d): %s", hostToResolve, try, maxTries, err)
time.Sleep(time.Duration(maxTries * 50 * time.Millisecond))
}
return fmt.Errorf("Unbound does not seem to be working after %d tries", maxTries)