From 6d48d31ac7fb6b7a9170f2f253e204521f244c9e Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 2 Feb 2021 00:56:49 +0300 Subject: Update RPC plugin, use hashmap instead of slice to store pluggable plugins Fix issue with log channels --- plugins/logger/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/logger/plugin.go') diff --git a/plugins/logger/plugin.go b/plugins/logger/plugin.go index 141ede64..7fc464b6 100644 --- a/plugins/logger/plugin.go +++ b/plugins/logger/plugin.go @@ -53,7 +53,7 @@ func (z *ZapLogger) NamedLogger(name string) (Logger, error) { if err != nil { return nil, err } - return NewZapAdapter(l), nil + return NewZapAdapter(l.Named(name)), nil } return NewZapAdapter(z.base.Named(name)), nil -- cgit v1.2.3