1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

fix etcd LogConfig bug (#1056)

This commit is contained in:
shikbupt 2019-12-23 15:29:13 +08:00 committed by Asim Aslam
parent 45208992b5
commit 1781542964

View File

@ -32,6 +32,6 @@ func LogConfig(config *zap.Config) registry.Option {
if o.Context == nil {
o.Context = context.Background()
}
o.Context = context.WithValue(o.Context, authKey{}, config)
o.Context = context.WithValue(o.Context, logConfigKey{}, config)
}
}