From 565afdce19de8dc13a070bbf87698cce0fad59ac Mon Sep 17 00:00:00 2001 From: Ethan Buchman <ethan@coinculture.info> Date: Thu, 24 Mar 2016 21:36:07 -0400 Subject: [PATCH] log check tx --- tmsp/erisdb.go | 4 ++++ tmsp/log.go | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 tmsp/log.go diff --git a/tmsp/erisdb.go b/tmsp/erisdb.go index 99757c0f..f649a488 100644 --- a/tmsp/erisdb.go +++ b/tmsp/erisdb.go @@ -120,6 +120,10 @@ func (app ErisDBApp) AppendTx(txBytes []byte) (res tmsp.Result) { // Implements tmsp.Application func (app ErisDBApp) CheckTx(txBytes []byte) (res tmsp.Result) { + log.Info("Check Tx", "tx", txBytes) + defer func() { + log.Info("Check Tx", "res", res) + }() var n int var err error tx := new(types.Tx) diff --git a/tmsp/log.go b/tmsp/log.go new file mode 100644 index 00000000..20fcf2f6 --- /dev/null +++ b/tmsp/log.go @@ -0,0 +1,7 @@ +package tmsp + +import ( + "github.com/tendermint/go-logger" +) + +var log = logger.New("module", "state") -- GitLab