summaryrefslogtreecommitdiff
path: root/plugins/config
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-19 18:10:39 +0300
committerGitHub <[email protected]>2021-01-19 18:10:39 +0300
commit0ff05b2732b4fd0783f959c94c54d7e39169f979 (patch)
treef50aa894ea4e5b402332f7f4a13b8c50ebb09126 /plugins/config
parent75ebbaac89ce8ebc3ab8de47b16e137844cfcd8a (diff)
parentd8e42927b63a0b102ce10d465a10d64bb6c02e22 (diff)
Merge pull request #487 from spiral/refactor/server_log_messagesv2.0.0-beta9
refactor(errors, logs): Uniform all errors operations, Update server log level of the server log messages
Diffstat (limited to 'plugins/config')
-rwxr-xr-xplugins/config/plugin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/config/plugin.go b/plugins/config/plugin.go
index 9cecf9f9..ce2baa85 100755
--- a/plugins/config/plugin.go
+++ b/plugins/config/plugin.go
@@ -18,7 +18,7 @@ type Viper struct {
// Inits config provider.
func (v *Viper) Init() error {
- const op = errors.Op("viper plugin init")
+ const op = errors.Op("config_plugin_init")
v.viper = viper.New()
// If user provided []byte data with config, read it and ignore Path and Prefix
if v.ReadInCfg != nil && v.Type != "" {
@@ -56,7 +56,7 @@ func (v *Viper) Overwrite(values map[string]interface{}) error {
// UnmarshalKey reads configuration section into configuration object.
func (v *Viper) UnmarshalKey(name string, out interface{}) error {
- const op = errors.Op("unmarshal key")
+ const op = errors.Op("config_plugin_unmarshal_key")
err := v.viper.UnmarshalKey(name, &out)
if err != nil {
return errors.E(op, err)
@@ -65,7 +65,7 @@ func (v *Viper) UnmarshalKey(name string, out interface{}) error {
}
func (v *Viper) Unmarshal(out interface{}) error {
- const op = errors.Op("config unmarshal")
+ const op = errors.Op("config_plugin_unmarshal")
err := v.viper.Unmarshal(&out)
if err != nil {
return errors.E(op, err)