trie: better error reporting (#25645)

This commit is contained in:
Martin Holst Swende
2022-09-01 08:41:10 +02:00
committed by GitHub
parent 95a2c221d4
commit d79bd2f0f6
4 changed files with 8 additions and 11 deletions
+1 -2
View File
@@ -21,7 +21,6 @@ import (
"bytes"
"encoding/gob"
"errors"
"fmt"
"io"
"sync"
@@ -207,7 +206,7 @@ func (st *StackTrie) TryUpdate(key, value []byte) error {
func (st *StackTrie) Update(key, value []byte) {
if err := st.TryUpdate(key, value); err != nil {
log.Error(fmt.Sprintf("Unhandled trie error: %v", err))
log.Error("Unhandled trie error in StackTrie.Update", "err", err)
}
}