[#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:
parent
db2e43387b
commit
bec4507997
3 changed files with 0 additions and 8 deletions
|
@ -55,7 +55,6 @@ func main() {
|
||||||
exitErr(err)
|
exitErr(err)
|
||||||
|
|
||||||
log = log.With(
|
log = log.With(
|
||||||
zap.String("app_name", misc.InnerRingName),
|
|
||||||
zap.String("app_version", misc.Version),
|
zap.String("app_version", misc.Version),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -363,7 +363,6 @@ func initCfg(path string) *cfg {
|
||||||
fatalOnErr(err)
|
fatalOnErr(err)
|
||||||
|
|
||||||
log = log.With(
|
log = log.With(
|
||||||
zap.String("app_name", misc.NodeName),
|
|
||||||
zap.String("app_version", misc.Version),
|
zap.String("app_version", misc.Version),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,9 @@
|
||||||
package misc
|
package misc
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// NodeName is a neofs node application name.
|
|
||||||
NodeName = "neofs-node"
|
|
||||||
|
|
||||||
// Prefix is a neofs node application prefix.
|
// Prefix is a neofs node application prefix.
|
||||||
Prefix = "neofs"
|
Prefix = "neofs"
|
||||||
|
|
||||||
// InnerRingName is an inner ring application name.
|
|
||||||
InnerRingName = "neofs-ir"
|
|
||||||
|
|
||||||
// InnerRingPrefix is an inner ring application prefix.
|
// InnerRingPrefix is an inner ring application prefix.
|
||||||
InnerRingPrefix = "neofs_ir"
|
InnerRingPrefix = "neofs_ir"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue