[#493] logger: Do not set global fields in constructor

Remove setting of `app_name` and `app_version` fields in `NewLogger`
constructor. Set these fields in Node and IR application in already
constructed log and remove them from viper .

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-11 11:25:54 +03:00 committed by Alex Vanin
parent d17526f8ac
commit 2a970b0125
4 changed files with 11 additions and 17 deletions

View file

@ -18,9 +18,6 @@ func newConfig(path string) (*viper.Viper, error) {
v.AutomaticEnv()
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
v.SetDefault("app.name", misc.InnerRingName)
v.SetDefault("app.version", misc.Version)
defaultConfiguration(v)
if path != "" {