all: blidly swap out glog to our log15, logs need rework
This commit is contained in:
@@ -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 <block number> <outputdir>`)
|
||||
log.Crit(fmt.Sprintf(`Usage: geth makedag <block number> <outputdir>`))
|
||||
}
|
||||
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)
|
||||
|
Reference in New Issue
Block a user