forked from TrueCloudLab/frostfs-node
[#1592] Remove debug builds
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
b8508585a5
commit
c4b86cf1f1
8 changed files with 11 additions and 104 deletions
|
@ -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
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue