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.
This commit is contained in:
parent
5ed7b7c24f
commit
0aea5f81ef
|
@ -203,7 +203,7 @@ func PrefetchSources(xTransport *XTransport, sources []*Source) time.Duration {
|
||||||
}
|
}
|
||||||
dlog.Debugf("Prefetching [%s]", source.name)
|
dlog.Debugf("Prefetching [%s]", source.name)
|
||||||
if delay, err := source.fetchWithCache(xTransport, now); err != nil {
|
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 {
|
} else {
|
||||||
dlog.Debugf("Prefetching [%s] succeeded, next update: %v", source.name, delay)
|
dlog.Debugf("Prefetching [%s] succeeded, next update: %v", source.name, delay)
|
||||||
if delay >= MinimumPrefetchInterval && (interval == MinimumPrefetchInterval || interval > delay) {
|
if delay >= MinimumPrefetchInterval && (interval == MinimumPrefetchInterval || interval > delay) {
|
||||||
|
|
Loading…
Reference in New Issue