aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-03 23:09:01 +0800
committerobscuren <geffobscura@gmail.com>2015-04-03 23:09:11 +0800
commit36452afd4e31083d748155e5e5ddd682128aa9b0 (patch)
treefbd62ba8a03506b4fd570af8681cfe56d434b351 /core
parent4558e04c0d35d2d057a7182593e8baaa2d3adec0 (diff)
downloadgo-tangerine-36452afd4e31083d748155e5e5ddd682128aa9b0.tar
go-tangerine-36452afd4e31083d748155e5e5ddd682128aa9b0.tar.gz
go-tangerine-36452afd4e31083d748155e5e5ddd682128aa9b0.tar.bz2
go-tangerine-36452afd4e31083d748155e5e5ddd682128aa9b0.tar.lz
go-tangerine-36452afd4e31083d748155e5e5ddd682128aa9b0.tar.xz
go-tangerine-36452afd4e31083d748155e5e5ddd682128aa9b0.tar.zst
go-tangerine-36452afd4e31083d748155e5e5ddd682128aa9b0.zip
glog wip
Diffstat (limited to 'core')
-rw-r--r--core/state/statedb.go5
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