*: Use structured logging

Implements structured logging via Logrus. This gives us a logger per
boundry that we care about, allowing for easier parsing of logs if users
have more than one log option enabled. Also, cleans up a lot of
conditionals in the code by simply silencing the logger at creation as
opposed to conditionally logging everywhere.
This commit is contained in:
Derek Parker
2018-06-14 11:12:11 -07:00
committed by Alessandro Arzilli
parent 774b5c7ce2
commit a208c89719
13 changed files with 123 additions and 153 deletions

View File

@ -113,7 +113,7 @@ func withTestTerminalBuildFlags(name string, t testing.TB, buildFlags test.Build
Listener: listener,
ProcessArgs: []string{test.BuildFixture(name, buildFlags).Path},
Backend: testBackend,
}, false)
})
if err := server.Run(); err != nil {
t.Fatal(err)
}