aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/main.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-11 22:04:27 +0800
committerobscuren <geffobscura@gmail.com>2014-07-11 22:04:27 +0800
commitd3e31a4a6db6166b0639f0e9be5f70d5035baeeb (patch)
tree5e89ad593b3b6d87d2116aaf298977ee7b8361ef /ethereum/main.go
parentc2bca5939d1d78d1548fcd43c29390fb06a508c0 (diff)
downloaddexon-d3e31a4a6db6166b0639f0e9be5f70d5035baeeb.tar
dexon-d3e31a4a6db6166b0639f0e9be5f70d5035baeeb.tar.gz
dexon-d3e31a4a6db6166b0639f0e9be5f70d5035baeeb.tar.bz2
dexon-d3e31a4a6db6166b0639f0e9be5f70d5035baeeb.tar.lz
dexon-d3e31a4a6db6166b0639f0e9be5f70d5035baeeb.tar.xz
dexon-d3e31a4a6db6166b0639f0e9be5f70d5035baeeb.tar.zst
dexon-d3e31a4a6db6166b0639f0e9be5f70d5035baeeb.zip
Special diff output + debugger changes
Diffstat (limited to 'ethereum/main.go')
-rw-r--r--ethereum/main.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/ethereum/main.go b/ethereum/main.go
index e4d73d494..39226c1d2 100644
--- a/ethereum/main.go
+++ b/ethereum/main.go
@@ -2,6 +2,7 @@ package main
import (
"github.com/ethereum/eth-go/ethlog"
+ "github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/go-ethereum/utils"
"runtime"
)
@@ -20,7 +21,14 @@ func main() {
// precedence: code-internal flag default < config file < environment variables < command line
Init() // parsing command line
+
+ // If the difftool option is selected ignore all other log output
+ if DiffTool {
+ LogLevel = 0
+ }
+
utils.InitConfig(ConfigFile, Datadir, "ETH")
+ ethutil.Config.Diff = DiffTool
utils.InitDataDir(Datadir)