Skip to content

Commit

Permalink
chore: move commit store logs to Debug level (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn authored May 11, 2022
1 parent 8b3bfe6 commit 47f0fa0
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 @@ -425,9 +425,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 @@ -986,7 +986,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 47f0fa0

Please sign in to comment.