aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/cleandb.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/swarm/cleandb.go')
-rw-r--r--cmd/swarm/cleandb.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/swarm/cleandb.go b/cmd/swarm/cleandb.go
index 81636ada5..29d01ba0f 100644
--- a/cmd/swarm/cleandb.go
+++ b/cmd/swarm/cleandb.go
@@ -17,8 +17,7 @@
package main
import (
- "log"
-
+ "github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/swarm/storage"
"gopkg.in/urfave/cli.v1"
)
@@ -26,14 +25,14 @@ import (
func cleandb(ctx *cli.Context) {
args := ctx.Args()
if len(args) != 1 {
- log.Fatal("need path to chunks database as the first and only argument")
+ utils.Fatalf("Need path to chunks database as the first and only argument")
}
chunkDbPath := args[0]
hash := storage.MakeHashFunc("SHA3")
dbStore, err := storage.NewDbStore(chunkDbPath, hash, 10000000, 0)
if err != nil {
- log.Fatalf("cannot initialise dbstore: %v", err)
+ utils.Fatalf("Cannot initialise dbstore: %v", err)
}
dbStore.Cleanup()
}