Skip to content

Commit

Permalink
fix logs related to store keys and commit hash (#151)
Browse files Browse the repository at this point in the history
* fix logs related to store keys and app hash

* Update log in store/rootmulti/store.go

Co-authored-by: Aleksandr Bezobchuk <[email protected]>

* Update log in baseapp/abci.go

Co-authored-by: Aleksandr Bezobchuk <[email protected]>

Co-authored-by: Aleksandr Bezobchuk <[email protected]>
  • Loading branch information
p0mvn and alexanderbez authored Mar 23, 2022
1 parent 7bd7a32 commit de5b9e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion store/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de5b9e7

Please sign in to comment.