Add missing error log message in fscache initialization

This commit is contained in:
Deluan 2021-04-21 14:15:42 -04:00
parent da30923a95
commit 31b553e972
1 changed files with 2 additions and 1 deletions

View File

@ -197,12 +197,13 @@ func newFSCache(name, cacheSize, cacheFolder string, maxItems int) (fscache.Cach
fs, err = NewSpreadFS(cacheFolder, 0755)
}
if err != nil {
log.Error(fmt.Sprintf("Error initializing %s cache", name), err)
log.Error(fmt.Sprintf("Error initializing %s cache FS", name), "newLayout", !conf.Server.DevOldCacheLayout, err)
return nil, err
}
ck, err := fscache.NewCacheWithHaunter(fs, h)
if err != nil {
log.Error(fmt.Sprintf("Error initializing %s cache", name), err)
return nil, err
}