From 1889727144008273e9dcd491dce6672126c37652 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 4 Apr 2015 13:24:01 +0200 Subject: Moved logging to logger.Core --- core/state_transition.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'core/state_transition.go') diff --git a/core/state_transition.go b/core/state_transition.go index 1994cabf6..e67abb951 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -8,6 +8,8 @@ import ( "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/vm" "github.com/ethereum/go-ethereum/crypto" + "github.com/ethereum/go-ethereum/logger" + "github.com/ethereum/go-ethereum/logger/glog" "github.com/ethereum/go-ethereum/params" ) @@ -166,9 +168,6 @@ func (self *StateTransition) preCheck() (err error) { } func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, err error) { - // statelogger.Debugf("(~) %x\n", self.msg.Hash()) - - // XXX Transactions after this point are considered valid. if err = self.preCheck(); err != nil { return } @@ -207,7 +206,7 @@ func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, er if err := self.UseGas(dataGas); err == nil { ref.SetCode(ret) } else { - statelogger.Infoln("Insufficient gas for creating code. Require", dataGas, "and have", self.gas) + glog.V(logger.Core).Infoln("Insufficient gas for creating code. Require", dataGas, "and have", self.gas) } } } else { -- cgit