mirror of
https://github.com/minio/minio.git
synced 2025-04-21 02:54:24 -04: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) {
|
} else if osIsPermission(err) {
|
||||||
return nil, errDiskAccessDenied
|
return nil, errDiskAccessDenied
|
||||||
}
|
}
|
||||||
logger.LogIf(GlobalContext, err) // log unexpected errors
|
logger.LogOnceIf(GlobalContext, err, err.Error()) // log unexpected errors
|
||||||
return nil, errCorruptedFormat
|
return nil, errCorruptedFormat
|
||||||
} else if osIsPermission(err) {
|
} else if osIsPermission(err) {
|
||||||
return nil, errDiskAccessDenied
|
return nil, errDiskAccessDenied
|
||||||
}
|
}
|
||||||
logger.LogIf(GlobalContext, err) // log unexpected errors
|
logger.LogOnceIf(GlobalContext, err, err.Error()) // log unexpected errors
|
||||||
return nil, errCorruptedFormat
|
return nil, errCorruptedFormat
|
||||||
}
|
}
|
||||||
return fi, nil
|
return fi, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user