From 6806dc2d0357011d39f20e1cfb9e1a084dc2bee5 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Tue, 27 Nov 2018 12:09:28 -0500 Subject: [PATCH] Print commit ID in hex --- PENDING.md | 3 ++- baseapp/baseapp.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PENDING.md b/PENDING.md index ba13b81a2526..b129bfcbb2a1 100644 --- a/PENDING.md +++ b/PENDING.md @@ -77,7 +77,8 @@ IMPROVEMENTS - #2821 Codespaces are now strings - #2779 Introduce `ValidateBasic` to the `Tx` interface and call it in the ante handler. - - #2825 More staking and distribution invariants + - #2825 More staking and distribution invariants + * #2912 Print commit ID in hex when commit is synced. * Tendermint - #2796 Update to go-amino 0.14.1 diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index c3479a59b736..157ec8f06bd6 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -805,7 +805,7 @@ func (app *BaseApp) Commit() (res abci.ResponseCommit) { commitID := app.cms.Commit() // TODO: this is missing a module identifier and dumps byte array app.Logger.Debug("Commit synced", - "commit", commitID, + "commit", fmt.Sprintf("%X", commitID), ) // Reset the Check state to the latest committed