diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-22 16:38:37 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-22 16:38:37 +0800 |
commit | 5f8911f7cba2cf837d891735f46b02b34e4fc228 (patch) | |
tree | 25d838b09733129a93810016ba3b9aa842958e87 /ethereum/ethereum.go | |
parent | 01b833146f3afa214586a1ffb710546a5e4cc90a (diff) | |
download | go-tangerine-5f8911f7cba2cf837d891735f46b02b34e4fc228.tar.gz go-tangerine-5f8911f7cba2cf837d891735f46b02b34e4fc228.tar.zst go-tangerine-5f8911f7cba2cf837d891735f46b02b34e4fc228.zip |
Custom identifier
Diffstat (limited to 'ethereum/ethereum.go')
-rw-r--r-- | ethereum/ethereum.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go index 2fdfd5caf..34bacb7b9 100644 --- a/ethereum/ethereum.go +++ b/ethereum/ethereum.go @@ -52,12 +52,15 @@ func main() { var logSys *log.Logger flags := log.LstdFlags + var lt ethutil.LoggerType if StartJsConsole || len(InputFile) > 0 { - ethutil.ReadConfig(DataDir, ethutil.LogFile) + lt = ethutil.LogFile } else { - ethutil.ReadConfig(DataDir, ethutil.LogFile|ethutil.LogStd) + lt = ethutil.LogFile | ethutil.LogStd } + ethutil.ReadConfig(DataDir, lt, Identifier) + logger := ethutil.Config.Log if LogFile != "" { |