chore(bitswap): rm debug log (covered by eventlog)
Brian Tiger Chow committed
Jan 18, 2015 at 20:30 UTC
3d3ac08fcf1498ce4ec974e961a99f7b80013163
1 file changed
-3
exchange/bitswap/bitswap.go
-3
@@ -108,7 +108,6 @@ type bitswap struct {
108
// GetBlock attempts to retrieve a particular block from peers within the
109
// deadline enforced by the context.
110
func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, error) {
111
- log := log.Prefix("bitswap(%s).GetBlock(%s)", bs.self, k)
111
112
// Any async work initiated by this function must end when this function
113
// 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
120
121
ctx = eventlog.ContextWithLoggable(ctx, eventlog.Uuid("GetBlockRequest"))
122
defer log.EventBegin(ctx, "GetBlockRequest", &k).Done()
124
- log.Debugf("GetBlockRequestBegin")
123
124
defer func() {
125
cancelFunc()
128
- log.Debugf("GetBlockRequestEnd")
126
}()
127
128
promise, err := bs.GetBlocks(ctx, []u.Key{k})