good morning!!!!

Skip to content
Snippets Groups Projects
Commit 6a78e080 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Tell config which loggers to use

parent 0a034841
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ func main() { ...@@ -39,7 +39,7 @@ func main() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())
ethchain.InitFees() ethchain.InitFees()
ethutil.ReadConfig(DataDir) ethutil.ReadConfig(DataDir, ethutil.LogFile|ethutil.LogStd)
// Instantiated a eth stack // Instantiated a eth stack
ethereum, err := eth.New(eth.CapDefault, UseUPnP) ethereum, err := eth.New(eth.CapDefault, UseUPnP)
......
...@@ -20,7 +20,7 @@ var ExportKey bool ...@@ -20,7 +20,7 @@ var ExportKey bool
var LogFile string var LogFile string
var DataDir string var DataDir string
var NonInteractive bool var NonInteractive bool
var StartExp bool var StartJsConsole bool
func Init() { func Init() {
flag.BoolVar(&StartConsole, "c", false, "debug and testing console") flag.BoolVar(&StartConsole, "c", false, "debug and testing console")
...@@ -39,7 +39,7 @@ func Init() { ...@@ -39,7 +39,7 @@ func Init() {
flag.StringVar(&DataDir, "dir", ".ethereum", "ethereum data directory") flag.StringVar(&DataDir, "dir", ".ethereum", "ethereum data directory")
flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)") flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)")
flag.IntVar(&MaxPeer, "x", 5, "maximum desired peers") flag.IntVar(&MaxPeer, "x", 5, "maximum desired peers")
flag.BoolVar(&StartExp, "ex", false, "exp") flag.BoolVar(&StartJsConsole, "js", false, "exp")
flag.Parse() flag.Parse()
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment