Skip to content

Commit

Permalink
chore: move commit store logs to Debug level (#234) (#282)
Browse files Browse the repository at this point in the history
(cherry picked from commit 47f0fa0)

Co-authored-by: Roman <[email protected]>
  • Loading branch information
mergify[bot] and p0mvn authored Jul 9, 2022
1 parent b70923c commit f37e34d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions store/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f37e34d

Please sign in to comment.