forked from TrueCloudLab/frostfs-node
[#493] logger: Write app version once on start
Writing application version in each log message seems pretty redundant. Remove global `app_version` field from Node/IR loggers. Write version, build time and debug flag once on start. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
bec4507997
commit
1fa49bca9c
3 changed files with 11 additions and 10 deletions
|
@ -362,10 +362,6 @@ func initCfg(path string) *cfg {
|
|||
log, err := logger.NewLogger(logPrm)
|
||||
fatalOnErr(err)
|
||||
|
||||
log = log.With(
|
||||
zap.String("app_version", misc.Version),
|
||||
)
|
||||
|
||||
netAddr, err := network.AddressFromString(viperCfg.GetString(cfgBootstrapAddress))
|
||||
fatalOnErr(err)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue