Fix startup failure when image cache is disabled.

Fixes #655
This commit is contained in:
Zane van Iperen 2020-11-22 19:41:50 +10:00 committed by Deluan Quintão
parent a89afb5fcf
commit 763a3ef267
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func NewFileCache(name, cacheSize, cacheFolder string, maxItems int, getReader R
log.Info("Finished initializing cache", "cache", fc.name, "maxSize", fc.cacheSize, "elapsedTime", time.Since(start))
fc.ready = true
if fc.disabled {
log.Debug("Cache DISABLED", "cache", fc.name, "size")
log.Debug("Cache DISABLED", "cache", fc.name, "size", fc.cacheSize)
}
}()