From 5abeeee2665c4feacd3da7eda276020518ab640f Mon Sep 17 00:00:00 2001 From: Kwitsch Date: Fri, 12 Apr 2024 23:43:13 +0200 Subject: [PATCH] Update resolver/caching_resolver.go Co-authored-by: ThinkChaos --- resolver/caching_resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }