aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-02 08:40:03 +0800
committerobscuren <geffobscura@gmail.com>2014-02-02 08:40:03 +0800
commitf56a595954fc6641f0b7300a82850b7923d357c5 (patch)
treee1e5846fdd6f7d688c99ff38f51ae81051ea9b86 /ethereum.go
parent20671758084b5f3889659231c6e4c9ef59d1b740 (diff)
downloadgo-tangerine-f56a595954fc6641f0b7300a82850b7923d357c5.tar
go-tangerine-f56a595954fc6641f0b7300a82850b7923d357c5.tar.gz
go-tangerine-f56a595954fc6641f0b7300a82850b7923d357c5.tar.bz2
go-tangerine-f56a595954fc6641f0b7300a82850b7923d357c5.tar.lz
go-tangerine-f56a595954fc6641f0b7300a82850b7923d357c5.tar.xz
go-tangerine-f56a595954fc6641f0b7300a82850b7923d357c5.tar.zst
go-tangerine-f56a595954fc6641f0b7300a82850b7923d357c5.zip
Reverted back to old messages
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go12
1 files changed, 1 insertions, 11 deletions
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()
}