[go: nahoru, domu]

Skip to content

Commit

Permalink
Remove redundant checkFormatJSON logging (minio#17134)
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost authored May 4, 2023
1 parent 6e24dff commit bb6f4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/xl-storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb6f4d7

Please sign in to comment.