mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 10:32:05 +00:00
new logging
This commit is contained in:
0
tests/test.sh
Normal file → Executable file
0
tests/test.sh
Normal file → Executable file
@@ -6,8 +6,9 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/tendermint/abci/client"
|
||||
abcicli "github.com/tendermint/abci/client"
|
||||
"github.com/tendermint/abci/types"
|
||||
"github.com/tendermint/tmlibs/log"
|
||||
"github.com/tendermint/tmlibs/process"
|
||||
)
|
||||
|
||||
@@ -37,6 +38,8 @@ func startClient(abciType string) abcicli.Client {
|
||||
if err != nil {
|
||||
panic("connecting to abci_app: " + err.Error())
|
||||
}
|
||||
logger := log.NewTmLogger(os.Stdout)
|
||||
client.SetLogger(log.With(logger, "module", "abcicli"))
|
||||
return client
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user