summaryrefslogtreecommitdiff
path: root/plugins/kv
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-23 12:15:09 +0300
committerValery Piashchynski <[email protected]>2021-04-23 12:15:09 +0300
commit808d86141c8cc8f24603b353179b9058bdc900e9 (patch)
tree4e9e6e8ecdb480c411af12f8d7e87a4a19fff8ae /plugins/kv
parent22ee906083a3f219871a3ef1f9eb1983f8f4975c (diff)
- Add additional log messages
Diffstat (limited to 'plugins/kv')
-rw-r--r--plugins/kv/storage.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/kv/storage.go b/plugins/kv/storage.go
index a9530f56..cd29e4d0 100644
--- a/plugins/kv/storage.go
+++ b/plugins/kv/storage.go
@@ -3,6 +3,7 @@ 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"
@@ -96,6 +97,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)
continue
}
@@ -110,6 +112,7 @@ func (p *Plugin) Serve() chan error {
case boltdb:
if _, ok := p.drivers[boltdb]; !ok {
+ log.Warn("no boltdb drivers registered", "registered", p.drivers)
continue
}
@@ -123,6 +126,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)
continue
}
@@ -136,6 +140,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)
continue
}