Skip to content

Commit

Permalink
VC: Improve logging in case of fatal error (#13681)
Browse files Browse the repository at this point in the history
* VC: Display `FATAL` log in case of uncaught error.

* `initializeFromCLI`: Remove `Println`.
  • Loading branch information
nalepae authored Mar 4, 2024
1 parent 4c3dbae commit 3df7a1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/validator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ func main() {
Version: version.Version(),
Action: func(ctx *cli.Context) error {
if err := startNode(ctx); err != nil {
return cli.Exit(err.Error(), 1)
log.Fatal(err.Error())
return err
}
return nil
},
Expand Down
1 change: 0 additions & 1 deletion validator/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ func (c *ValidatorClient) initializeFromCLI(cliCtx *cli.Context, router *mux.Rou
if isWeb3SignerURLFlagSet {
c.wallet = wallet.NewWalletForWeb3Signer()
} else {
fmt.Println("initializeFromCLI asking for wallet")
w, err := wallet.OpenWalletOrElseCli(cliCtx, func(cliCtx *cli.Context) (*wallet.Wallet, error) {
return nil, wallet.ErrNoWalletFound
})
Expand Down

0 comments on commit 3df7a1f

Please sign in to comment.