Commit a4ccbf39 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

fix(bitswap) consistent event names

@whyrusleeping @jbenet

since the logger is created with package scope, don't need to specify
the package name in event messages

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent c0decfc9
...@@ -89,11 +89,11 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err ...@@ -89,11 +89,11 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err
ctx, cancelFunc := context.WithCancel(parent) ctx, cancelFunc := context.WithCancel(parent)
defer cancelFunc() defer cancelFunc()
ctx = eventlog.ContextWithMetadata(ctx, eventlog.Uuid("BitswapGetBlockRequest")) ctx = eventlog.ContextWithMetadata(ctx, eventlog.Uuid("GetBlockRequest"))
log.Event(ctx, "BitswapGetBlockRequestBegin", &k) log.Event(ctx, "GetBlockRequestBegin", &k)
defer func() { defer func() {
log.Event(ctx, "BitSwapGetBlockRequestEnd", &k) log.Event(ctx, "GetBlockRequestEnd", &k)
}() }()
bs.wantlist.Add(k) bs.wantlist.Add(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