From 0082c4d7a0ae3dcf05e3b33424ad0df6843ae523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CGheisMohammadi=E2=80=9D?= <36589218+GheisMohammadi@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:01:05 +0800 Subject: [PATCH] add system log for creating/loading snapshot --- core/blockchain_impl.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/blockchain_impl.go b/core/blockchain_impl.go index b14bcbe28..224ccdb42 100644 --- a/core/blockchain_impl.go +++ b/core/blockchain_impl.go @@ -355,6 +355,9 @@ func newBlockChainWithOptions( AsyncBuild: !bc.cacheConfig.SnapshotWait, } fmt.Println("loading/generating snapshot...") + utils.Logger().Info(). + Str("Root", head.Root().Hex()). + Msg("loading/generating snapshot") bc.snaps, _ = snapshot.New(snapconfig, bc.db, bc.triedb, head.Root()) }