From bb6f4d7633a91ccc787a06e135a416a03b9296f6 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Thu, 4 May 2023 07:28:37 -0700 Subject: [PATCH] Remove redundant checkFormatJSON logging (#17134) --- cmd/xl-storage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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