mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
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:
parent
4c3dbae3c0
commit
3df7a1f067
@ -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
|
||||
},
|
||||
|
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user