[#493] logger: Do not write app name in each log message of Node/IR

Writing application name in each log message seems pretty redundant.

Remove no longer used `misc.NodeName` and `misc.InnerRingName` constants.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-11 12:10:57 +03:00 committed by Alex Vanin
parent db2e43387b
commit bec4507997
3 changed files with 0 additions and 8 deletions

View file

@ -55,7 +55,6 @@ func main() {
exitErr(err)
log = log.With(
zap.String("app_name", misc.InnerRingName),
zap.String("app_version", misc.Version),
)

View file

@ -363,7 +363,6 @@ func initCfg(path string) *cfg {
fatalOnErr(err)
log = log.With(
zap.String("app_name", misc.NodeName),
zap.String("app_version", misc.Version),
)

View file

@ -1,15 +1,9 @@
package misc
const (
// NodeName is a neofs node application name.
NodeName = "neofs-node"
// Prefix is a neofs node application prefix.
Prefix = "neofs"
// InnerRingName is an inner ring application name.
InnerRingName = "neofs-ir"
// InnerRingPrefix is an inner ring application prefix.
InnerRingPrefix = "neofs_ir"
)