From f37e34d99505d9141cfaaad60631595b32ffdc50 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 17:59:07 -0700 Subject: [PATCH] chore: move commit store logs to Debug level (#234) (#282) (cherry picked from commit 47f0fa0a54a83e1e2696ca6adfb8405626f21a71) Co-authored-by: Roman --- store/rootmulti/store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index 2a395799c719..4ffdd8abf58d 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -422,9 +422,9 @@ func (rs *Store) Commit() types.CommitID { } rs.mx.RLock() - hash, keys := rs.lastCommitInfo.Hash() defer rs.mx.RUnlock() - rs.logger.Info("calculated commit hash", "height", version, "commit_hash", fmt.Sprintf("%X", hash), "keys", keys) + hash, keys := rs.lastCommitInfo.Hash() + rs.logger.Debug("calculated commit hash", "height", version, "commit_hash", fmt.Sprintf("%X", hash), "keys", keys) return types.CommitID{ Version: version, @@ -919,7 +919,7 @@ func (rs *Store) commitStores(version int64, storeMap map[types.StoreKey]types.C for key, store := range storeMap { commitID := store.Commit() - rs.logger.Info("committed KVStore", "height", commitID.Version, "key", key.Name(), "commit_store_hash", fmt.Sprintf("%X", commitID.Hash)) + rs.logger.Debug("committed KVStore", "height", commitID.Version, "key", key.Name(), "commit_store_hash", fmt.Sprintf("%X", commitID.Hash)) if store.GetStoreType() == types.StoreTypeTransient { continue