Commit 7b7a6d8c authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(eventlog) context

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 43f74c82
......@@ -14,7 +14,7 @@ func ContextWithMetadata(ctx context.Context, l Loggable) context.Context {
existing, err := MetadataFromContext(ctx)
if err != nil {
// 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
}
......
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