diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-22 23:22:50 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-23 18:16:46 +0800 |
commit | 1ca20a2697e5df840a0541b61f274379b43fddc7 (patch) | |
tree | 6fc5d566164c5fd960d91f0b88588d0688e715bd /cmd/geth/main.go | |
parent | 23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2 (diff) | |
download | dexon-1ca20a2697e5df840a0541b61f274379b43fddc7.tar.gz dexon-1ca20a2697e5df840a0541b61f274379b43fddc7.tar.zst dexon-1ca20a2697e5df840a0541b61f274379b43fddc7.zip |
cmd, whisper/mailserver: revert to utils.Fatalf
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r-- | cmd/geth/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 2bebccac7..803a618f1 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -235,7 +235,7 @@ func makeFullNode(ctx *cli.Context) *node.Node { copy(config.Commit[:], commit) return release.NewReleaseService(ctx, config) }); err != nil { - log.Crit(fmt.Sprintf("Failed to register the Geth release oracle service: %v", err)) + utils.Fatalf("Failed to register the Geth release oracle service: %v", err) } return stack } @@ -265,7 +265,7 @@ func startNode(ctx *cli.Context, stack *node.Node) { // Create an chain state reader for self-derivation rpcClient, err := stack.Attach() if err != nil { - log.Crit(fmt.Sprintf("Failed to attach to self: %v", err)) + utils.Fatalf("Failed to attach to self: %v", err) } stateReader := ethclient.NewClient(rpcClient) @@ -296,10 +296,10 @@ func startNode(ctx *cli.Context, stack *node.Node) { if ctx.GlobalBool(utils.MiningEnabledFlag.Name) { var ethereum *eth.Ethereum if err := stack.Service(ðereum); err != nil { - log.Crit(fmt.Sprintf("ethereum service not running: %v", err)) + utils.Fatalf("ethereum service not running: %v", err) } if err := ethereum.StartMining(ctx.GlobalInt(utils.MinerThreadsFlag.Name)); err != nil { - log.Crit(fmt.Sprintf("Failed to start mining: %v", err)) + utils.Fatalf("Failed to start mining: %v", err) } } } |