|
|
@ -336,7 +336,6 @@ Put the following code into the "main.go" file: |
|
|
|
package main |
|
|
|
|
|
|
|
import ( |
|
|
|
"errors" |
|
|
|
"flag" |
|
|
|
"fmt" |
|
|
|
"os" |
|
|
@ -410,7 +409,7 @@ func newTendermint(app abci.Application, configFile string) (*nm.Node, error) { |
|
|
|
// create logger |
|
|
|
logger := log.NewTMLogger(log.NewSyncWriter(os.Stdout)) |
|
|
|
var err error |
|
|
|
logger, err = tmflags.ParseLogLevel(config.LogLevel, logger, cfg.DefaultLogLevel()) |
|
|
|
logger, err = tmflags.ParseLogLevel(config.LogLevel, logger, cfg.DefaultLogLevel) |
|
|
|
if err != nil { |
|
|
|
return nil, fmt.Errorf("failed to parse log level: %w", err) |
|
|
|
} |
|
|
|