summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-30 13:11:20 +0300
committerGitHub <[email protected]>2021-04-30 13:11:20 +0300
commitc9770668debb203f121d8a5f08a3e3c19f4535ea (patch)
tree3fbbb23b0151a92bfe44ae4b6c2d1b5613c76dd9
parentd0dccb0c761df45da7fba00340f1cd5c66c71711 (diff)
parent684864530618f4b82399e5f1a89d5967c6ca9bcb (diff)
Merge branch 'master' into feature/list_of_plulgins
-rw-r--r--CHANGELOG.md7
-rw-r--r--plugins/logger/plugin.go6
2 files changed, 7 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ca0758b1..57d17096 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,13 @@ v2.2.0 (11.05.2021)
- 🐛 Fix: issue with wrong ordered middlewares (reverse). Now the order is correct.
+v2.1.1 (29.04.2021)
+-------------------
+
+## 🩹 Fixes:
+
+- 🐛 Fix: issue with endure provided wrong logger interface implementation.
+
v2.1.0 (27.04.2021)
-------------------
diff --git a/plugins/logger/plugin.go b/plugins/logger/plugin.go
index 86275a85..1084cc5e 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,7 +73,6 @@ func (z *ZapLogger) ServiceLogger(n endure.Named) (Logger, error) {
func (z *ZapLogger) Provides() []interface{} {
return []interface{}{
z.ServiceLogger,
- z.DefaultLogger,
}
}