remove all unnecessary logging, logOnce when absolutely needed (#17965)

This commit is contained in:
Harshavardhana
2023-09-01 16:19:18 -07:00
committed by GitHub
parent d665e855de
commit 8208bcb896
2 changed files with 9 additions and 24 deletions

View File

@@ -19,7 +19,6 @@ package cmd
import (
"bytes"
"context"
"encoding/binary"
"encoding/hex"
"errors"
@@ -1422,7 +1421,6 @@ func (x *xlMetaV2) DeleteVersion(fi FileInfo) (string, error) {
err = x.addVersion(freeVersion)
}
}
logger.LogIf(context.Background(), err)
if fi.Deleted {
err = x.addVersion(ventry)