VC: Improve logging in case of fatal error (#13681)

* VC: Display `FATAL` log in case of uncaught error.

* `initializeFromCLI`: Remove `Println`.
This commit is contained in:
Manu NALEPA 2024-03-04 10:28:49 +01:00 committed by GitHub
parent 4c3dbae3c0
commit 3df7a1f067
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

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