[#493] logger: Abolish non-usable options
Change logger's encoding to `console`, time encoding to `ISO8601TimeEncoder` and leave all other options as they are in `zap.NewProductionConfig`. Remove default values of no longer existing options in node/ir config. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
737a9417d1
commit
d17526f8ac
3 changed files with 5 additions and 59 deletions
|
@ -34,11 +34,6 @@ func newConfig(path string) (*viper.Viper, error) {
|
|||
|
||||
func defaultConfiguration(cfg *viper.Viper) {
|
||||
cfg.SetDefault("logger.level", "info")
|
||||
cfg.SetDefault("logger.format", "console")
|
||||
cfg.SetDefault("logger.trace_level", "fatal")
|
||||
cfg.SetDefault("logger.no_disclaimer", false)
|
||||
cfg.SetDefault("logger.sampling.initial", 1000)
|
||||
cfg.SetDefault("logger.sampling.thereafter", 1000)
|
||||
|
||||
cfg.SetDefault("pprof.enabled", false)
|
||||
cfg.SetDefault("pprof.address", ":6060")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue