Skip to content

Commit

Permalink
Merge pull request #18 from 0chain/fix/log-spam
Browse files Browse the repository at this point in the history
removed annoying log on lfb save
  • Loading branch information
peterlimg committed Nov 9, 2023
2 parents 77baa17 + 3e2bad6 commit 074b9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/util/mpt_pnodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (pndb *PNodeDB) GetNode(key Key) (Node, error) {
func (pndb *PNodeDB) PutNode(key Key, node Node) error {
nd := node.Clone()
data := nd.Encode()
if !bytes.Equal(key, nd.GetHashBytes()) {
if DebugMPTNode && !bytes.Equal(key, nd.GetHashBytes()) {
logging.Logger.Error("put node key not match",
zap.String("key", ToHex(key)),
zap.String("node", ToHex(nd.GetHashBytes())))
Expand Down

0 comments on commit 074b9ae

Please sign in to comment.