cache: add info log on notification - for #2150
This commit is contained in:
parent
32e6eee341
commit
b52e34ef5e
1 changed files with 10 additions and 1 deletions
11
backend/cache/cache.go
vendored
11
backend/cache/cache.go
vendored
|
@ -518,7 +518,16 @@ func (f *Fs) httpExpireRemote(in rc.Params) (out rc.Params, err error) {
|
||||||
|
|
||||||
// receiveChangeNotify is a wrapper to notifications sent from the wrapped FS about changed files
|
// receiveChangeNotify is a wrapper to notifications sent from the wrapped FS about changed files
|
||||||
func (f *Fs) receiveChangeNotify(forgetPath string, entryType fs.EntryType) {
|
func (f *Fs) receiveChangeNotify(forgetPath string, entryType fs.EntryType) {
|
||||||
fs.Debugf(f, "notify: expiring cache for '%v'", forgetPath)
|
if crypt, yes := f.isWrappedByCrypt(); yes {
|
||||||
|
decryptedPath, err := crypt.DecryptFileName(forgetPath)
|
||||||
|
if err == nil {
|
||||||
|
fs.Infof(decryptedPath, "received cache expiry notification")
|
||||||
|
} else {
|
||||||
|
fs.Infof(forgetPath, "received cache expiry notification")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fs.Infof(forgetPath, "received cache expiry notification")
|
||||||
|
}
|
||||||
// notify upstreams too (vfs)
|
// notify upstreams too (vfs)
|
||||||
f.notifyChangeUpstream(forgetPath, entryType)
|
f.notifyChangeUpstream(forgetPath, entryType)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue