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