xl: Add logging. (#1372)

This commit is contained in:
Harshavardhana authored and Harshavardhana committed 2016-04-25 12:47:31 -07:00
1 parent 57f35c2bcc
commit 8bce699dae
9 files changed
+315 -71

No files matched your search

+4 -1
View File
@@ -645,7 +645,10 @@ func (s fsStorage) StatFile(volume, path string) (file FileInfo, err error) {
// If its a directory its not a regular file.
if st.Mode().IsDir() {
log.Debugf("File is %s", errIsNotRegular)
log.WithFields(logrus.Fields{
"diskPath": s.diskPath,
"filePath": filePath,
}).Debugf("File is %s.", errIsNotRegular)
return FileInfo{}, errFileNotFound
}
return FileInfo{