Remove redundant checkFormatJSON logging (#17134)

This commit is contained in:
Klaus Post 2023-05-04 07:28:37 -07:00 committed by GitHub
parent 6e24dff26a
commit bb6f4d7633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -678,12 +678,12 @@ func (s *xlStorage) checkFormatJSON() (os.FileInfo, error) {
} else if osIsPermission(err) {
return nil, errDiskAccessDenied
}
logger.LogIf(GlobalContext, err) // log unexpected errors
logger.LogOnceIf(GlobalContext, err, err.Error()) // log unexpected errors
return nil, errCorruptedFormat
} else if osIsPermission(err) {
return nil, errDiskAccessDenied
}
logger.LogIf(GlobalContext, err) // log unexpected errors
logger.LogOnceIf(GlobalContext, err, err.Error()) // log unexpected errors
return nil, errCorruptedFormat
}
return fi, nil