From bec4507997078475f260820fb4c32f3e2d6622c2 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 11 May 2021 12:10:57 +0300 Subject: [PATCH] [#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 --- cmd/neofs-ir/main.go | 1 - cmd/neofs-node/config.go | 1 - misc/build.go | 6 ------ 3 files changed, 8 deletions(-) diff --git a/cmd/neofs-ir/main.go b/cmd/neofs-ir/main.go index d6ae0d27d3..4e3eaafa0f 100644 --- a/cmd/neofs-ir/main.go +++ b/cmd/neofs-ir/main.go @@ -55,7 +55,6 @@ func main() { exitErr(err) log = log.With( - zap.String("app_name", misc.InnerRingName), zap.String("app_version", misc.Version), ) diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index 016b0671b7..754715730f 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -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), ) diff --git a/misc/build.go b/misc/build.go index 234d2afb51..16a4bc9865 100644 --- a/misc/build.go +++ b/misc/build.go @@ -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" )