From de5b9e7ebd751f298aa69b345d6dd6e00bf748f7 Mon Sep 17 00:00:00 2001 From: Roman <34196718+p0mvn@users.noreply.github.com> Date: Wed, 23 Mar 2022 15:19:23 -0700 Subject: [PATCH] fix logs related to store keys and commit hash (#151) * fix logs related to store keys and app hash * Update log in store/rootmulti/store.go Co-authored-by: Aleksandr Bezobchuk * Update log in baseapp/abci.go Co-authored-by: Aleksandr Bezobchuk Co-authored-by: Aleksandr Bezobchuk --- baseapp/abci.go | 2 +- store/rootmulti/store.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/baseapp/abci.go b/baseapp/abci.go index 0a782a97943d..f03b1b3723e1 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -338,7 +338,7 @@ func (app *BaseApp) Commit() (res abci.ResponseCommit) { go app.snapshot(header.Height) } - app.logger.Info("commited - baseapp", "height", commitID.Version, "commit_hash", commitID.Hash, "retain_height", retainHeight) + app.logger.Info("committed ABCI", "height", commitID.Version, "commit_hash", fmt.Sprintf("%X", commitID.Hash), "retain_height", retainHeight) return abci.ResponseCommit{ Data: commitID.Hash, RetainHeight: retainHeight, diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index 9a42d25efd67..6a721d63c5f2 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -960,7 +960,7 @@ func (rs *Store) commitStores(version int64, storeMap map[types.StoreKey]types.C for key, store := range storeMap { commitID := store.Commit() - rs.logger.Info("commit kvstore", "height", commitID.Version, "key", key, "commit_store_hash", commitID.Hash) + rs.logger.Info("committed KVStore", "height", commitID.Version, "key", key.Name(), "commit_store_hash", fmt.Sprintf("%X", commitID.Hash)) if store.GetStoreType() == types.StoreTypeTransient { continue