@cryptotaxi247 / kubo / commits / 7b7a6d8c5

fix(eventlog) context

License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 16, 2014 at 05:11 UTC 7b7a6d8c577dff4e18b2f1852530aea07c2c600d
1 file changed +1 -1
util/eventlog/context.go
+1 -1
@@ -14,7 +14,7 @@ func ContextWithMetadata(ctx context.Context, l Loggable) context.Context {
14 existing, err := MetadataFromContext(ctx)
15 if err != nil {
16 // context does not contain meta. just set the new metadata
17 - child := context.WithValue(ctx, metadataKey, l.Loggable())
17 + child := context.WithValue(ctx, metadataKey, Metadata(l.Loggable()))
18 return child
19 }
20