From 808d86141c8cc8f24603b353179b9058bdc900e9 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 23 Apr 2021 12:15:09 +0300 Subject: - Add additional log messages --- plugins/kv/storage.go | 5 +++++ 1 file changed, 5 insertions(+) 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 } -- cgit v1.2.3