diff options
author | Valery Piashchynski <[email protected]> | 2021-04-29 22:19:51 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-29 22:19:51 +0300 |
commit | 8325d2e46314b9ed5ad736668c7285e06f224b21 (patch) | |
tree | 1e9b8897577a0c169b6a120f5aee498fe45e947c | |
parent | 7297e5f2fad841466024f8622da3e14b7874f989 (diff) | |
parent | 0a8c163409147677254be045f3f103f16877b879 (diff) |
#651 fix(logger): remove redundant logger interface implementation
#651 fix(logger): remove redundant logger interface implementation
-rw-r--r-- | CHANGELOG.md | 7 | ||||
-rw-r--r-- | plugins/logger/plugin.go | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ca0758b1..3c827689 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ CHANGELOG ========= +v2.1.1 (29.04.2021) +------------------- + +## 🩹 Fixes: + +- 🐛 Fix: issue with endure provided wrong logger interface implementation. + v2.2.0 (11.05.2021) ------------------- diff --git a/plugins/logger/plugin.go b/plugins/logger/plugin.go index e1066cba..9965b29c 100644 --- a/plugins/logger/plugin.go +++ b/plugins/logger/plugin.go @@ -51,11 +51,6 @@ func (z *ZapLogger) Init(cfg config.Configurer) error { return nil } -// DefaultLogger returns default logger. -func (z *ZapLogger) DefaultLogger() (Logger, error) { - return NewZapAdapter(z.base), nil -} - // NamedLogger returns logger dedicated to the specific channel. Similar to Named() but also reads the core params. func (z *ZapLogger) NamedLogger(name string) (Logger, error) { if cfg, ok := z.channels.Channels[name]; ok { @@ -78,6 +73,5 @@ func (z *ZapLogger) ServiceLogger(n endure.Named) (Logger, error) { func (z *ZapLogger) Provides() []interface{} { return []interface{}{ z.ServiceLogger, - z.DefaultLogger, } } |