fix(eventlog) context

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow 2014-11-16 05:11:13 -08:00
parent 43f74c82ac
commit 7b7a6d8c57

View File

@ -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
}