aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-17 20:07:52 +0800
committerobscuren <geffobscura@gmail.com>2014-05-17 20:07:52 +0800
commit8730dfdcc2e2b40410a57385e4864d15f2f0336b (patch)
treeeabf6400bc78b1796317fbb7cef642a7f2da2306 /ethutil
parent88686cbed27ad2e7d5c111051e06c270b1b352a3 (diff)
downloadgo-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.gz
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.bz2
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.lz
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.xz
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.zst
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.zip
Changed how changes are being applied to states
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/config.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/ethutil/config.go b/ethutil/config.go
index b4bd9158e..296b72d9e 100644
--- a/ethutil/config.go
+++ b/ethutil/config.go
@@ -9,14 +9,6 @@ import (
"runtime"
)
-// Log types available
-type LogType byte
-
-const (
- LogTypeStdIn = 1
- LogTypeFile = 2
-)
-
// Config struct
type config struct {
Db Database
@@ -34,7 +26,7 @@ var Config *config
// Read config
//
// Initialize the global Config variable with default settings
-func ReadConfig(base string) *config {
+func ReadConfig(base string, logTypes LoggerType) *config {
if Config == nil {
usr, _ := user.Current()
path := path.Join(usr.HomeDir, base)
@@ -51,7 +43,7 @@ func ReadConfig(base string) *config {
}
Config = &config{ExecPath: path, Debug: true, Ver: "0.5.0 RC6"}
- Config.Log = NewLogger(LogFile|LogStd, LogLevelDebug)
+ Config.Log = NewLogger(logTypes, LogLevelDebug)
Config.SetClientString("/Ethereum(G)")
}