From 5d0eec27bf69ea6c32b69a592920849f0342784e Mon Sep 17 00:00:00 2001 From: joeycli Date: Tue, 13 Aug 2024 15:30:45 +0800 Subject: [PATCH] chore: change panic to log --- core/state/caching_versa_db.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/state/caching_versa_db.go b/core/state/caching_versa_db.go index 855925df29..363cdee8a7 100644 --- a/core/state/caching_versa_db.go +++ b/core/state/caching_versa_db.go @@ -325,8 +325,7 @@ func (vt *VersaTree) Hash() common.Hash { hash, err := vt.db.CalcRootHash(vt.handler) if err != nil { // TODO:: debug code, will be change to log error - log.Info("calc tree root hash", "tree handler info", vt.db.ParseTreeHandler(vt.handler)) - panic(fmt.Sprintf("failed to cacl versa tree hash, handler: %d, error: %s", vt.handler, err.Error())) + log.Crit("calc tree root hash", "tree handler info", vt.db.ParseTreeHandler(vt.handler), "error", err.Error()) } return hash }