diff options
author | Valery Piashchynski <[email protected]> | 2021-09-11 01:04:05 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-09-11 01:04:05 +0300 |
commit | 0c4dd160a3eec4d76b9b82799c55eea4c5f50629 (patch) | |
tree | abc3eef044d6da54e1ba118637564e4d911e0fa6 /plugins/kv | |
parent | 6984e25ecdfc113400007c45fd69822f09b46ff0 (diff) |
Update .vscode settings
Update codecov
Update configs
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/kv')
-rw-r--r-- | plugins/kv/plugin.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/kv/plugin.go b/plugins/kv/plugin.go index a2b36e3e..86bd982f 100644 --- a/plugins/kv/plugin.go +++ b/plugins/kv/plugin.go @@ -99,7 +99,8 @@ func (p *Plugin) Serve() chan error { // save the storage p.storages[k] = storage - default: + // try global then + case p.cfgPlugin.Has(k): if _, ok := p.constructors[drStr]; !ok { p.log.Warn("no constructors registered", "requested constructor", drStr, "registered", p.constructors) continue @@ -114,9 +115,11 @@ func (p *Plugin) Serve() chan error { // save the storage p.storages[k] = storage + default: + p.log.Error("can't find local or global configuration, this section will be skipped", "local: ", configKey, "global: ", k) + continue } } - continue } |