Skip to content

Commit 61104bd

Browse files
lidelhacdias
authored andcommitted
chore: remove bitswap from debug log
blockstore can be used in contexts where there is no bitswap, and this log message will me EXTREMELY confusing, wasting people's time on debugging invalid side of system
1 parent 846a175 commit 61104bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blockservice/blockservice.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func getBlock(ctx context.Context, c cid.Cid, bs blockstore.Blockstore, fget fun
244244

245245
// TODO be careful checking ErrNotFound. If the underlying
246246
// implementation changes, this will break.
247-
logger.Debug("Blockservice: Searching bitswap")
247+
logger.Debug("BlockService: Searching")
248248
blk, err := f.GetBlock(ctx, c)
249249
if err != nil {
250250
return nil, err
@@ -262,7 +262,7 @@ func getBlock(ctx context.Context, c cid.Cid, bs blockstore.Blockstore, fget fun
262262
return blk, nil
263263
}
264264

265-
logger.Debug("Blockservice GetBlock: Not found")
265+
logger.Debug("BlockService GetBlock: Not found")
266266
return nil, err
267267
}
268268

0 commit comments

Comments
 (0)