Add missing error log message in fscache initialization

This commit is contained in:
Deluan 2021-04-21 14:15:42 -04:00 committed by Joe Stump
parent fd5a93f801
commit 78c8e9c75b
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

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
}