Skip to content

Commit f3ce9d7

Browse files
committed
rabbitmq_peer_discovery_consul: Configure Consul test instance log file
1 parent 2405ed1 commit f3ce9d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/rabbitmq_peer_discovery_consul/test/system_SUITE.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ 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", "-config-dir", ConsulConfDir, "-log-file", LogFile],
201203
ConsulPid = spawn(fun() -> rabbit_ct_helpers:exec(Cmd) end),
202204
rabbit_ct_helpers:set_config(Config, {consul_pid, ConsulPid}).
203205

0 commit comments

Comments
 (0)