summaryrefslogtreecommitdiff
path: root/plugins/logger/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-02 00:56:49 +0300
committerValery Piashchynski <[email protected]>2021-02-02 00:56:49 +0300
commit6d48d31ac7fb6b7a9170f2f253e204521f244c9e (patch)
treeac64346997b307808d8a6624dcd1a5a7b2e887f1 /plugins/logger/plugin.go
parent7149a8ee1c0935bb5c8d13312ba66b78b9c4d174 (diff)
Update RPC plugin, use hashmap instead of slice to store pluggable
plugins Fix issue with log channels
Diffstat (limited to 'plugins/logger/plugin.go')
-rw-r--r--plugins/logger/plugin.go2
1 files changed, 1 insertions, 1 deletions
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