Skip to content

Commit

Permalink
chore: remove bitswap from debug log
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lidel authored and hacdias committed Apr 3, 2023
1 parent 846a175 commit 61104bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blockservice/blockservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func getBlock(ctx context.Context, c cid.Cid, bs blockstore.Blockstore, fget fun

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

logger.Debug("Blockservice GetBlock: Not found")
logger.Debug("BlockService GetBlock: Not found")
return nil, err
}

Expand Down

0 comments on commit 61104bd

Please sign in to comment.