Browse Source

docs/tutorials: fix sample code (#6186)

pull/6188/head
winor 4 years ago
committed by GitHub
parent
commit
f57aaa4925
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      docs/tutorials/go-built-in.md

+ 1
- 2
docs/tutorials/go-built-in.md View File

@ -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)
}


Loading…
Cancel
Save