From da8391e9ae67fdd25229cd2481df2bbec7ae96d2 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 12 Apr 2020 02:42:32 +0000 Subject: [PATCH] Using %s instead of %w for format print --- internal/dns/wait.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dns/wait.go b/internal/dns/wait.go index e3a53d92..c7793c4b 100644 --- a/internal/dns/wait.go +++ b/internal/dns/wait.go @@ -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)