Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
fix(all): fix missing logs should be print in stderr (#370)
Browse files Browse the repository at this point in the history
Co-authored-by: Roger <[email protected]>
Co-authored-by: jeff <[email protected]>
  • Loading branch information
3 people authored Aug 31, 2023
1 parent edf95a7 commit af6531b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package main

import (
"fmt"
"math/rand"
"os"
"time"

"github.com/ethereum/go-ethereum/log"
"github.com/taikoxyz/taiko-client/cmd/flags"
"github.com/taikoxyz/taiko-client/cmd/utils"
"github.com/taikoxyz/taiko-client/driver"
Expand Down Expand Up @@ -56,6 +56,7 @@ func main() {
}

if err := app.Run(os.Args); err != nil {
log.Crit("Failed to start Taiko client", "error", err)
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}

0 comments on commit af6531b

Please sign in to comment.