diff --git a/cmd/xl-storage.go b/cmd/xl-storage.go index f4c8b2021..af148f8c6 100644 --- a/cmd/xl-storage.go +++ b/cmd/xl-storage.go @@ -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