update log interface

This commit is contained in:
Anton Kaliaev
2017-05-04 22:43:54 +04:00
parent d2a4b16b28
commit 1dc3629b1a
11 changed files with 31 additions and 29 deletions

View File

@ -42,7 +42,7 @@ func testStream(t *testing.T, app types.Application) {
if err != nil {
t.Fatalf("Error starting socket server: %v", err.Error())
}
server.SetLogger(log.With(log.TestingLogger(), "module", "abci-server"))
server.SetLogger(log.TestingLogger().With("module", "abci-server"))
defer server.Stop()
// Connect to the socket
@ -50,7 +50,7 @@ func testStream(t *testing.T, app types.Application) {
if err != nil {
t.Fatalf("Error starting socket client: %v", err.Error())
}
client.SetLogger(log.With(log.TestingLogger(), "module", "abci-client"))
client.SetLogger(log.TestingLogger().With("module", "abci-client"))
client.Start()
defer client.Stop()
@ -116,7 +116,7 @@ func testGRPCSync(t *testing.T, app *types.GRPCApplication) {
if err != nil {
t.Fatalf("Error starting GRPC server: %v", err.Error())
}
server.SetLogger(log.With(log.TestingLogger(), "module", "abci-server"))
server.SetLogger(log.TestingLogger().With("module", "abci-server"))
defer server.Stop()
// Connect to the socket