提交 f9e3925f 编写于 作者: V Vlad Ilyushchenko

(issue #29) increased logging

上级 b1a072af
......@@ -214,6 +214,7 @@ public class JournalClient {
}
public boolean voteInstance(int instance) throws JournalNetworkException {
LOGGER.info("Instance %s is sending vote", instance);
openChannel();
commandProducer.write(channel, Command.CLUSTER_VOTE);
intResponseProducer.write(channel, instance);
......
......@@ -109,7 +109,7 @@ public class ClusterController {
try {
if (activeNode != null) {
LOGGER.info(thisNode() + " There is active node already %s. Yielding");
LOGGER.info(thisNode() + " There is active node already %s. Yielding", activeNode);
setupClient(activeNode);
return;
}
......
......@@ -267,7 +267,7 @@ public class ClusterControllerTest extends AbstractTest {
);
controller1.start();
active1.await(10, TimeUnit.SECONDS);
active1.await(30, TimeUnit.SECONDS);
Assert.assertEquals(0, active1.getCount());
controller2.start();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册