Merge pull request #11145 from filecoin-project/update-logging

fix: downgrade harmless warning to debug
This commit is contained in:
Aayush Rajasekaran 2023-08-08 12:22:09 -04:00 committed by GitHub
commit 87458af858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ func (sb *Sealer) AddPiece(ctx context.Context, sector storiface.SectorRef, exis
defer func() { defer func() {
closer, ok := origPieceData.(io.Closer) closer, ok := origPieceData.(io.Closer)
if !ok { if !ok {
log.Warnf("AddPiece: cannot close pieceData reader %T because it is not an io.Closer", origPieceData) log.Debugf("AddPiece: cannot close pieceData reader %T because it is not an io.Closer", origPieceData)
return return
} }
if err := closer.Close(); err != nil { if err := closer.Close(); err != nil {