From 0aea5f81efb173637fa0d5a8de641dd5d8ecce84 Mon Sep 17 00:00:00 2001 From: William Elwood Date: Mon, 4 Nov 2019 07:48:47 +0000 Subject: [PATCH] Raise log level of a prefetch failure This way it matches with the "loading from URL" info message and users with that log level aren't left with the false impression that it loaded fine when it really didn't. --- dnscrypt-proxy/sources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/sources.go b/dnscrypt-proxy/sources.go index 6c9b62df..1a91e810 100644 --- a/dnscrypt-proxy/sources.go +++ b/dnscrypt-proxy/sources.go @@ -203,7 +203,7 @@ func PrefetchSources(xTransport *XTransport, sources []*Source) time.Duration { } dlog.Debugf("Prefetching [%s]", source.name) if delay, err := source.fetchWithCache(xTransport, now); err != nil { - dlog.Debugf("Prefetching [%s] failed: %v", source.name, err) + dlog.Infof("Prefetching [%s] failed: %v", source.name, err) } else { dlog.Debugf("Prefetching [%s] succeeded, next update: %v", source.name, delay) if delay >= MinimumPrefetchInterval && (interval == MinimumPrefetchInterval || interval > delay) {