diff options
author | Valery Piashchynski <[email protected]> | 2020-12-01 17:33:47 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-01 17:33:47 +0300 |
commit | 3805b875c6498a9697c692c010bc022e8ebd50b0 (patch) | |
tree | 00635f6a6e9b1029e302f8e96faa7ab269fb43bd /plugins/logger | |
parent | 84c8234ec01ad1d5ea5f0a8c7dbca9a3012bcb2b (diff) |
golangci linters fix
Diffstat (limited to 'plugins/logger')
-rw-r--r-- | plugins/logger/plugin.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/logger/plugin.go b/plugins/logger/plugin.go index 2937056c..64b77a64 100644 --- a/plugins/logger/plugin.go +++ b/plugins/logger/plugin.go @@ -7,8 +7,8 @@ import ( "go.uber.org/zap" ) -// ServiceName declares service name. -const ServiceName = "logs" +// PluginName declares plugin name. +const PluginName = "logs" // ZapLogger manages zap logger. type ZapLogger struct { @@ -19,12 +19,12 @@ type ZapLogger struct { // Init logger service. func (z *ZapLogger) Init(cfg config.Configurer) error { - err := cfg.UnmarshalKey(ServiceName, &z.cfg) + err := cfg.UnmarshalKey(PluginName, &z.cfg) if err != nil { return err } - err = cfg.UnmarshalKey(ServiceName, &z.channels) + err = cfg.UnmarshalKey(PluginName, &z.channels) if err != nil { return err } |