From c6d31c0d6dfed12c160f2501b9099ad5006e0d88 Mon Sep 17 00:00:00 2001 From: nemo Date: Tue, 8 Aug 2023 10:52:35 -0400 Subject: [PATCH] fix: downgrade harmless warning to debug --- storage/sealer/ffiwrapper/sealer_cgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/sealer/ffiwrapper/sealer_cgo.go b/storage/sealer/ffiwrapper/sealer_cgo.go index 871012d0bed..821b91f4c68 100644 --- a/storage/sealer/ffiwrapper/sealer_cgo.go +++ b/storage/sealer/ffiwrapper/sealer_cgo.go @@ -192,7 +192,7 @@ func (sb *Sealer) AddPiece(ctx context.Context, sector storiface.SectorRef, exis defer func() { closer, ok := origPieceData.(io.Closer) 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 } if err := closer.Close(); err != nil {