[#1592] Remove debug builds

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-07-13 17:45:33 +03:00 committed by fyrchik
parent b8508585a5
commit c4b86cf1f1
8 changed files with 11 additions and 104 deletions

View file

@ -1,16 +0,0 @@
package config
import (
"github.com/nspcc-dev/neofs-node/misc"
)
// DebugValue returns debug configuration value.
//
// Returns nil if misc.Debug is not set to "true".
func DebugValue(c *Config, name string) interface{} {
if misc.Debug == "true" {
return c.Value(name)
}
return nil
}

View file

@ -110,9 +110,7 @@ func bootUp(c *cfg) {
func wait(c *cfg) {
c.log.Info("application started",
zap.String("version", misc.Version),
zap.String("debug", misc.Debug),
)
zap.String("version", misc.Version))
select {
case <-c.ctx.Done(): // graceful shutdown