mirror of https://github.com/hashicorp/consul
api: Enable debug output from Consul for tests
parent
5107f5d1f9
commit
c19b0e2ab2
|
@ -24,6 +24,7 @@ var consulConfig = `{
|
||||||
},
|
},
|
||||||
"data_dir": "%s",
|
"data_dir": "%s",
|
||||||
"bootstrap": true,
|
"bootstrap": true,
|
||||||
|
"log_level": "debug",
|
||||||
"server": true
|
"server": true
|
||||||
}`
|
}`
|
||||||
|
|
||||||
|
@ -73,6 +74,8 @@ func newTestServer(t *testing.T) *testServer {
|
||||||
|
|
||||||
// Start the server
|
// Start the server
|
||||||
cmd := exec.Command("consul", "agent", "-config-file", configFile.Name())
|
cmd := exec.Command("consul", "agent", "-config-file", configFile.Name())
|
||||||
|
cmd.Stdout = os.Stdout
|
||||||
|
cmd.Stderr = os.Stderr
|
||||||
if err := cmd.Start(); err != nil {
|
if err := cmd.Start(); err != nil {
|
||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("err: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue