summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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..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,
}
}