diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-19 18:14:47 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-19 18:14:47 +0800 |
commit | 30842eb8d013856039c128f3a3303c1fc6f833c2 (patch) | |
tree | f67399fd56d1ef7e381154899808a962431038e7 /utils | |
parent | 43f88b2bbb6fc993f8bfee531056a7e11bef59bd (diff) | |
download | go-tangerine-30842eb8d013856039c128f3a3303c1fc6f833c2.tar go-tangerine-30842eb8d013856039c128f3a3303c1fc6f833c2.tar.gz go-tangerine-30842eb8d013856039c128f3a3303c1fc6f833c2.tar.bz2 go-tangerine-30842eb8d013856039c128f3a3303c1fc6f833c2.tar.lz go-tangerine-30842eb8d013856039c128f3a3303c1fc6f833c2.tar.xz go-tangerine-30842eb8d013856039c128f3a3303c1fc6f833c2.tar.zst go-tangerine-30842eb8d013856039c128f3a3303c1fc6f833c2.zip |
Changed logging
Diffstat (limited to 'utils')
-rw-r--r-- | utils/cmd.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/cmd.go b/utils/cmd.go index 62e8f31dc..f163575da 100644 --- a/utils/cmd.go +++ b/utils/cmd.go @@ -6,7 +6,6 @@ import ( "github.com/ethereum/eth-go/ethpub" "github.com/ethereum/eth-go/ethrpc" "github.com/ethereum/eth-go/ethutil" - "log" "time" ) @@ -14,7 +13,7 @@ func DoRpc(ethereum *eth.Ethereum, RpcPort int) { var err error ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum), RpcPort) if err != nil { - log.Println("Could not start RPC interface:", err) + ethutil.Config.Log.Infoln("Could not start RPC interface:", err) } else { go ethereum.RpcServer.Start() } @@ -25,7 +24,7 @@ func DoMining(ethereum *eth.Ethereum) { ethereum.Mining = true if ethutil.GetKeyRing().Len() == 0 { - log.Println("No address found, can't start mining") + ethutil.Config.Log.Infoln("No address found, can't start mining") return } keyPair := ethutil.GetKeyRing().Get(0) @@ -40,7 +39,7 @@ func DoMining(ethereum *eth.Ethereum) { time.Sleep(5 * time.Second) } */ - log.Println("Miner started") + ethutil.Config.Log.Infoln("Miner started") miner := ethminer.NewDefaultMiner(addr, ethereum) miner.Start() |