diff --git a/resolver/caching_resolver.go b/resolver/caching_resolver.go index 1a4fc39dc..757f03b9f 100644 --- a/resolver/caching_resolver.go +++ b/resolver/caching_resolver.go @@ -114,7 +114,7 @@ func (r *CachingResolver) reloadCacheEntry(ctx context.Context, cacheKey string) response, err := r.next.Resolve(ctx, req) if err != nil { - util.LogOnError(ctx, fmt.Sprintf("can't prefetch '%s' ", domainName), err) + logger.WithError(err).WithField("domain", domainName).Warn("cache prefetch failed") return nil, 0 }