aboutsummaryrefslogtreecommitdiffstats
path: root/core/state
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-04 19:24:01 +0800
committerobscuren <geffobscura@gmail.com>2015-04-04 19:24:01 +0800
commit1889727144008273e9dcd491dce6672126c37652 (patch)
treec97f8939039377e10f695e554667945e36750b9a /core/state
parent218bfeb60e9a9e7f0874db18135e7ad633ff83f1 (diff)
downloaddexon-1889727144008273e9dcd491dce6672126c37652.tar.gz
dexon-1889727144008273e9dcd491dce6672126c37652.tar.zst
dexon-1889727144008273e9dcd491dce6672126c37652.zip
Moved logging to logger.Core
Diffstat (limited to 'core/state')
-rw-r--r--core/state/state_object.go8
-rw-r--r--core/state/statedb.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/core/state/state_object.go b/core/state/state_object.go
index e44bf2cd6..b8b1972e0 100644
--- a/core/state/state_object.go
+++ b/core/state/state_object.go
@@ -124,7 +124,7 @@ func (self *StateObject) MarkForDeletion() {
self.remove = true
self.dirty = true
- if glog.V(logger.Debug) {
+ if glog.V(logger.Core) {
glog.Infof("%x: #%d %v X\n", self.Address(), self.nonce, self.balance)
}
}
@@ -190,7 +190,7 @@ func (c *StateObject) GetInstr(pc *big.Int) *common.Value {
func (c *StateObject) AddBalance(amount *big.Int) {
c.SetBalance(new(big.Int).Add(c.balance, amount))
- if glog.V(logger.Debug) {
+ if glog.V(logger.Core) {
glog.Infof("%x: #%d %v (+ %v)\n", c.Address(), c.nonce, c.balance, amount)
}
}
@@ -198,7 +198,7 @@ func (c *StateObject) AddBalance(amount *big.Int) {
func (c *StateObject) SubBalance(amount *big.Int) {
c.SetBalance(new(big.Int).Sub(c.balance, amount))
- if glog.V(logger.Debug) {
+ if glog.V(logger.Core) {
glog.Infof("%x: #%d %v (- %v)\n", c.Address(), c.nonce, c.balance, amount)
}
}
@@ -234,7 +234,7 @@ func (c *StateObject) ConvertGas(gas, price *big.Int) error {
func (self *StateObject) SetGasPool(gasLimit *big.Int) {
self.gasPool = new(big.Int).Set(gasLimit)
- if glog.V(logger.Debug) {
+ if glog.V(logger.Core) {
glog.Infof("%x: gas (+ %v)", self.Address(), self.gasPool)
}
}
diff --git a/core/state/statedb.go b/core/state/statedb.go
index e027533aa..065cbd607 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -209,7 +209,7 @@ 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 {
- if glog.V(logger.Debug) {
+ if glog.V(logger.Core) {
glog.Infof("(+) %x\n", addr)
}