From f56a595954fc6641f0b7300a82850b7923d357c5 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 2 Feb 2014 01:40:03 +0100 Subject: Reverted back to old messages --- dev_console.go | 2 +- ethereum.go | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/dev_console.go b/dev_console.go index 4153e33bf..76f8ec72e 100644 --- a/dev_console.go +++ b/dev_console.go @@ -136,7 +136,7 @@ func (i *Console) ParseInput(input string) bool { fmt.Println("getaddr: address unknown") } case "say": - i.ethereum.Broadcast(ethwire.MsgTalkTy, tokens[1]) + i.ethereum.Broadcast(ethwire.MsgTalkTy, []interface{}{tokens[1]}) case "addp": i.ethereum.ConnectToPeer(tokens[1]) case "pcount": diff --git a/ethereum.go b/ethereum.go index 7f5570110..8ad4ae524 100644 --- a/ethereum.go +++ b/ethereum.go @@ -11,7 +11,6 @@ import ( "log" "os" "os/signal" - "path" "runtime" "time" ) @@ -65,18 +64,9 @@ func main() { err := os.Mkdir(ethutil.Config.ExecPath, os.ModePerm) // Error is OK if the error is ErrExist if err != nil && !os.IsExist(err) { - log.Panic("Unable to create EXECPATH. Exiting") + log.Panic("Unable to create EXECPATH:", err) } - // TODO The logger will eventually be a non blocking logger. Logging is a expensive task - // Log to file only - file, err := os.OpenFile(path.Join(ethutil.Config.ExecPath, "debug.log"), os.O_RDWR|os.O_CREATE, os.ModePerm) - if err != nil { - log.Panic("Unable to set proper logger", err) - } - - ethutil.Config.Log = log.New(file, "", 0) - console := NewConsole(ethereum) go console.Start() } -- cgit