From 256e9fce438ebbcc345ca609298e0089eb076c92 Mon Sep 17 00:00:00 2001 From: Roman Akhtariev Date: Wed, 23 Mar 2022 20:03:34 +0000 Subject: [PATCH 1/3] fix logs related to store keys and app hash --- 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 0a782a97943..767bbf2d1fe 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("commited - baseapp", "height", commitID.Version, "commit_hash", fmt.Sprintf("%v", 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 9a42d25efd6..e7cb324afc8 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("commit kvstore", "height", commitID.Version, "key", key.Name(), "commit_store_hash", fmt.Sprintf("%v", commitID.Hash)) if store.GetStoreType() == types.StoreTypeTransient { continue From 9785df1d66b710ecc2d78ad10bc1156fb7a7a9ac Mon Sep 17 00:00:00 2001 From: Roman <34196718+p0mvn@users.noreply.github.com> Date: Wed, 23 Mar 2022 15:18:27 -0700 Subject: [PATCH 2/3] Update log in store/rootmulti/store.go Co-authored-by: Aleksandr Bezobchuk --- store/rootmulti/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index e7cb324afc8..6a721d63c5f 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.Name(), "commit_store_hash", fmt.Sprintf("%v", 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 From 16344ad1fad490d7cd4aa8dd60dd39da92a03f2b Mon Sep 17 00:00:00 2001 From: Roman <34196718+p0mvn@users.noreply.github.com> Date: Wed, 23 Mar 2022 15:18:41 -0700 Subject: [PATCH 3/3] Update log in baseapp/abci.go Co-authored-by: Aleksandr Bezobchuk --- baseapp/abci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baseapp/abci.go b/baseapp/abci.go index 767bbf2d1fe..f03b1b3723e 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", fmt.Sprintf("%v", 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,