mirror of
https://github.com/minio/minio.git
synced 2025-01-24 05:03:16 -05:00
Remove redundant checkFormatJSON logging (#17134)
This commit is contained in:
parent
6e24dff26a
commit
bb6f4d7633
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user