diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-28 21:51:30 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-28 21:51:30 +0800 |
commit | b117da2db3e2a7c557fa6f95c49aa041a973a563 (patch) | |
tree | e7b4b68ffe98debb25cf7999012eb2d4e96e5436 /core/state/statedb.go | |
parent | e02883c0a2a9aa70de6b80413ca40dca833c4946 (diff) | |
download | dexon-b117da2db3e2a7c557fa6f95c49aa041a973a563.tar dexon-b117da2db3e2a7c557fa6f95c49aa041a973a563.tar.gz dexon-b117da2db3e2a7c557fa6f95c49aa041a973a563.tar.bz2 dexon-b117da2db3e2a7c557fa6f95c49aa041a973a563.tar.lz dexon-b117da2db3e2a7c557fa6f95c49aa041a973a563.tar.xz dexon-b117da2db3e2a7c557fa6f95c49aa041a973a563.tar.zst dexon-b117da2db3e2a7c557fa6f95c49aa041a973a563.zip |
core/state: drop most of a logs (useless at this volume)
Diffstat (limited to 'core/state/statedb.go')
-rw-r--r-- | core/state/statedb.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index a87607a25..cfd033bd8 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -410,7 +410,7 @@ func (self *StateDB) getStateObject(addr common.Address) (stateObject *stateObje } var data Account if err := rlp.DecodeBytes(enc, &data); err != nil { - log.Error(fmt.Sprintf("can't decode object at %x: %v", addr[:], err)) + log.Error("Failed to decode state object", "addr", addr, "err", err) return nil } // Insert into the live set. @@ -445,9 +445,6 @@ 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 { - log.Debug("", "msg", log.Lazy{Fn: func() string { - return fmt.Sprintf("(+) %x\n", addr) - }}) self.journal = append(self.journal, createObjectChange{account: &addr}) } else { self.journal = append(self.journal, resetObjectChange{prev: prev}) @@ -616,7 +613,7 @@ func (s *StateDB) CommitBatch(deleteEmptyObjects bool) (root common.Hash, batch batch = s.db.NewBatch() root, _ = s.commit(batch, deleteEmptyObjects) - log.Debug(fmt.Sprintf("Trie cache stats: %d misses, %d unloads", trie.CacheMisses(), trie.CacheUnloads())) + log.Debug("Trie cache stats after commit", "misses", trie.CacheMisses(), "unloads", trie.CacheUnloads()) return root, batch } |