Skip to content

Commit

Permalink
set up log for genesis generation
Browse files Browse the repository at this point in the history
  • Loading branch information
LEAFERx committed Nov 18, 2023
1 parent 2de0a1a commit 11cd5d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ops/cmd/genesis/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import (
)

func main() {
log.Root().SetHandler(log.LvlFilterHandler(log.LvlInfo, log.StreamHandler(os.Stderr, log.TerminalFormat(true))))

app := cli.NewApp()
app.Name = "spgenesis"
app.Usage = "Generate specular genesis file"
Expand All @@ -24,7 +26,6 @@ func main() {

err := app.Run(os.Args)
if err != nil {
fmt.Printf("Application failed: %v\n", err)
log.Crit("Application failed", "message", err)
}
}
Expand Down

0 comments on commit 11cd5d9

Please sign in to comment.