Commit 40993c17 authored by Brian Tiger Chow's avatar Brian Tiger Chow

chore(bitswap): rm debug log (covered by eventlog)

parent 4db3e96d
...@@ -108,7 +108,6 @@ type bitswap struct { ...@@ -108,7 +108,6 @@ type bitswap struct {
// GetBlock attempts to retrieve a particular block from peers within the // GetBlock attempts to retrieve a particular block from peers within the
// deadline enforced by the context. // deadline enforced by the context.
func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, error) { func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, error) {
log := log.Prefix("bitswap(%s).GetBlock(%s)", bs.self, k)
// Any async work initiated by this function must end when this function // Any async work initiated by this function must end when this function
// returns. To ensure this, derive a new context. Note that it is okay to // returns. To ensure this, derive a new context. Note that it is okay to
...@@ -121,11 +120,9 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err ...@@ -121,11 +120,9 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err
ctx = eventlog.ContextWithLoggable(ctx, eventlog.Uuid("GetBlockRequest")) ctx = eventlog.ContextWithLoggable(ctx, eventlog.Uuid("GetBlockRequest"))
defer log.EventBegin(ctx, "GetBlockRequest", &k).Done() defer log.EventBegin(ctx, "GetBlockRequest", &k).Done()
log.Debugf("GetBlockRequestBegin")
defer func() { defer func() {
cancelFunc() cancelFunc()
log.Debugf("GetBlockRequestEnd")
}() }()
promise, err := bs.GetBlocks(ctx, []u.Key{k}) promise, err := bs.GetBlocks(ctx, []u.Key{k})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment