Skip to content

Commit f4d61d2

Browse files
committed
rabbitmq_peer_discovery_consul: Configure Consul test instance log file
1 parent 6941e10 commit f4d61d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deps/rabbitmq_peer_discovery_consul/test/system_SUITE.erl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,11 @@ start_consul(Config) ->
197197
ct:pal("Starting Consul daemon"),
198198
ConsulBin = ?config(consul_bin, Config),
199199
ConsulConfDir = ?config(consul_conf_dir, Config),
200-
Cmd = [ConsulBin, "agent", "-config-dir", ConsulConfDir],
200+
PrivDir = ?config(priv_dir, Config),
201+
LogFile = filename:join(PrivDir, "consul.log"),
202+
Cmd = [ConsulBin, "agent",
203+
"-config-dir", ConsulConfDir,
204+
"-log-file", LogFile],
201205
ConsulPid = spawn(fun() -> rabbit_ct_helpers:exec(Cmd) end),
202206
rabbit_ct_helpers:set_config(Config, {consul_pid, ConsulPid}).
203207

0 commit comments

Comments
 (0)