diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-03 23:09:01 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-03 23:09:11 +0800 |
commit | 36452afd4e31083d748155e5e5ddd682128aa9b0 (patch) | |
tree | fbd62ba8a03506b4fd570af8681cfe56d434b351 /core | |
parent | 4558e04c0d35d2d057a7182593e8baaa2d3adec0 (diff) | |
download | dexon-36452afd4e31083d748155e5e5ddd682128aa9b0.tar.gz dexon-36452afd4e31083d748155e5e5ddd682128aa9b0.tar.zst dexon-36452afd4e31083d748155e5e5ddd682128aa9b0.zip |
glog wip
Diffstat (limited to 'core')
-rw-r--r-- | core/state/statedb.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index e69bb34fe..33e8c20e5 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -7,6 +7,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/trie" + "github.com/golang/glog" ) var statelogger = logger.NewLogger("STATE") @@ -210,7 +211,9 @@ func (self *StateDB) GetOrNewStateObject(addr common.Address) *StateObject { // NewStateObject create a state object whether it exist in the trie or not func (self *StateDB) newStateObject(addr common.Address) *StateObject { - statelogger.Debugf("(+) %x\n", addr) + if glog.V(logger.Debug) { + glog.Infof("(+) %x\n", addr) + } stateObject := NewStateObject(addr, self.db) self.stateObjects[addr.Str()] = stateObject |