Update resolver/caching_resolver.go

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
This commit is contained in:
Kwitsch 2024-04-12 23:43:13 +02:00
parent a411c5feee
commit 6a899075b6
1 changed files with 1 additions and 1 deletions

View File

@ -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
}