diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2017-02-15 17:14:44 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-02-15 17:14:44 +0800 |
commit | c8695fae359aa327da9203a57ffaf4f2d47d4370 (patch) | |
tree | 1ea2f6f687f75d99e019133beddf6aef63881afe /core/state | |
parent | a973d1d5233bbd36cbaed0b7235311d4cd529580 (diff) | |
download | dexon-c8695fae359aa327da9203a57ffaf4f2d47d4370.tar.gz dexon-c8695fae359aa327da9203a57ffaf4f2d47d4370.tar.zst dexon-c8695fae359aa327da9203a57ffaf4f2d47d4370.zip |
logger: remove Core verbosity level (#3659)
Diffstat (limited to 'core/state')
-rw-r--r-- | core/state/state_object.go | 6 | ||||
-rw-r--r-- | core/state/statedb.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/state/state_object.go b/core/state/state_object.go index 87aa8ccd6..da1914c9b 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -135,7 +135,7 @@ func (self *StateObject) markSuicided() { self.onDirty(self.Address()) self.onDirty = nil } - if glog.V(logger.Core) { + if glog.V(logger.Debug) { glog.Infof("%x: #%d %v X\n", self.Address(), self.Nonce(), self.Balance()) } } @@ -253,7 +253,7 @@ func (c *StateObject) AddBalance(amount *big.Int) { } c.SetBalance(new(big.Int).Add(c.Balance(), amount)) - if glog.V(logger.Core) { + if glog.V(logger.Debug) { glog.Infof("%x: #%d %v (+ %v)\n", c.Address(), c.Nonce(), c.Balance(), amount) } } @@ -266,7 +266,7 @@ func (c *StateObject) SubBalance(amount *big.Int) { } c.SetBalance(new(big.Int).Sub(c.Balance(), amount)) - if glog.V(logger.Core) { + if glog.V(logger.Debug) { glog.Infof("%x: #%d %v (- %v)\n", c.Address(), c.Nonce(), c.Balance(), amount) } } diff --git a/core/state/statedb.go b/core/state/statedb.go index bbccba9fb..68009deec 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -451,7 +451,7 @@ func (self *StateDB) createObject(addr common.Address) (newobj, prev *StateObjec newobj = newObject(self, addr, Account{}, self.MarkStateObjectDirty) newobj.setNonce(0) // sets the object to dirty if prev == nil { - if glog.V(logger.Core) { + if glog.V(logger.Debug) { glog.Infof("(+) %x\n", addr) } self.journal = append(self.journal, createObjectChange{account: &addr}) |