提交 7b7a6d8c 作者: Brian Tiger Chow

fix(eventlog) context

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 43f74c82
...@@ -14,7 +14,7 @@ func ContextWithMetadata(ctx context.Context, l Loggable) context.Context { ...@@ -14,7 +14,7 @@ func ContextWithMetadata(ctx context.Context, l Loggable) context.Context {
existing, err := MetadataFromContext(ctx) existing, err := MetadataFromContext(ctx)
if err != nil { if err != nil {
// context does not contain meta. just set the new metadata // context does not contain meta. just set the new metadata
child := context.WithValue(ctx, metadataKey, l.Loggable()) child := context.WithValue(ctx, metadataKey, Metadata(l.Loggable()))
return child return child
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论