From 49c2f7e13b4ba6d84f532688c0764a2c0bc57e86 Mon Sep 17 00:00:00 2001 From: Renato Costa Date: Tue, 13 Jun 2023 15:40:52 -0400 Subject: [PATCH] testserver: pass `logtostderr` when starting multiple nodes This commit adds the `--logtostderr` command line flag when starting a cluster with multiple nodes, making the behavior consistent with single-node clusters. In addition, this makes the change introduced in 68fede3 more useful, as the stderr will include the actual cockroach logs. --- testserver/testserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/testserver/testserver.go b/testserver/testserver.go index a544959..c476eae 100644 --- a/testserver/testserver.go +++ b/testserver/testserver.go @@ -577,6 +577,7 @@ func NewTestServer(opts ...TestServerOpt) (TestServer, error) { nodes[i].startCmdArgs = []string{ serverArgs.cockroachBinary, startCmd, + "--logtostderr", secureOpt, storeArg, fmt.Sprintf(