summaryrefslogtreecommitdiff
path: root/plugins/kv
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-23 12:25:01 +0300
committerValery Piashchynski <[email protected]>2021-04-23 12:25:01 +0300
commitb2a6f4785145a4e9b26fd2134120a20126524b03 (patch)
treeb4308a1f1e9d01c598c7e17654acf4e022a14239 /plugins/kv
parent808d86141c8cc8f24603b353179b9058bdc900e9 (diff)
- Add additional log messages
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/kv')
-rw-r--r--plugins/kv/storage.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/kv/storage.go b/plugins/kv/storage.go
index cd29e4d0..e8468b77 100644
--- a/plugins/kv/storage.go
+++ b/plugins/kv/storage.go
@@ -3,7 +3,6 @@ package kv
import (
"fmt"
- "github.com/prometheus/common/log"
endure "github.com/spiral/endure/pkg/container"
"github.com/spiral/errors"
"github.com/spiral/roadrunner/v2/plugins/config"
@@ -97,7 +96,7 @@ func (p *Plugin) Serve() chan error {
switch v.(map[string]interface{})[driver] {
case memcached:
if _, ok := p.drivers[memcached]; !ok {
- log.Warn("no memcached drivers registered", "registered", p.drivers)
+ p.log.Warn("no memcached drivers registered", "registered", p.drivers)
continue
}
@@ -112,7 +111,7 @@ func (p *Plugin) Serve() chan error {
case boltdb:
if _, ok := p.drivers[boltdb]; !ok {
- log.Warn("no boltdb drivers registered", "registered", p.drivers)
+ p.log.Warn("no boltdb drivers registered", "registered", p.drivers)
continue
}
@@ -126,7 +125,7 @@ func (p *Plugin) Serve() chan error {
p.storages[k] = storage
case memory:
if _, ok := p.drivers[memory]; !ok {
- log.Warn("no in-memory drivers registered", "registered", p.drivers)
+ p.log.Warn("no in-memory drivers registered", "registered", p.drivers)
continue
}
@@ -140,7 +139,7 @@ func (p *Plugin) Serve() chan error {
p.storages[k] = storage
case redis:
if _, ok := p.drivers[redis]; !ok {
- log.Warn("no redis drivers registered", "registered", p.drivers)
+ p.log.Warn("no redis drivers registered", "registered", p.drivers)
continue
}