From d4fd06c3dc6cd6d2dbd2bfebfee5bcb46a504851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 22 Feb 2017 14:10:07 +0200 Subject: all: blidly swap out glog to our log15, logs need rework --- cmd/geth/misccmd.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/geth/misccmd.go') diff --git a/cmd/geth/misccmd.go b/cmd/geth/misccmd.go index 077f1ad11..9cb161e1a 100644 --- a/cmd/geth/misccmd.go +++ b/cmd/geth/misccmd.go @@ -28,6 +28,7 @@ import ( "github.com/ethereum/ethash" "github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/eth" + "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/params" "gopkg.in/urfave/cli.v1" ) @@ -68,7 +69,7 @@ The output of this command is supposed to be machine-readable. func makedag(ctx *cli.Context) error { args := ctx.Args() wrongArgs := func() { - utils.Fatalf(`Usage: geth makedag `) + log.Crit(fmt.Sprintf(`Usage: geth makedag `)) } switch { case len(args) == 2: @@ -84,7 +85,7 @@ func makedag(ctx *cli.Context) error { } _, err = ioutil.ReadDir(dir) if err != nil { - utils.Fatalf("Can't find dir") + log.Crit(fmt.Sprintf("Can't find dir")) } fmt.Println("making DAG, this could take awhile...") ethash.MakeDAG(blockNum, dir) -- cgit v1.2.3