add cache error log

This commit is contained in:
Chris Lu 2021-09-19 01:33:26 -07:00
parent eab7cf4bd3
commit c1255d30ad

View file

@ -177,6 +177,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
Directory: dir,
Name: name,
}); err != nil {
glog.Errorf("cache %s: %v", entry.FullPath, err)
return fmt.Errorf("cache %s: %v", entry.FullPath, err)
} else {
chunks = resp.Entry.Chunks