Skip to content

Commit

Permalink
(issue #29) increased logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bluestreak01 committed Jan 22, 2015
1 parent b1a072a commit f9e3925
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions nfsdb-core/src/main/java/com/nfsdb/net/JournalClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ public boolean pingServer() {
}

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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private void up() throws JournalNetworkException {

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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public void onShutdown() {
);

controller1.start();
active1.await(10, TimeUnit.SECONDS);
active1.await(30, TimeUnit.SECONDS);
Assert.assertEquals(0, active1.getCount());

controller2.start();
Expand Down

0 comments on commit f9e3925

Please sign in to comment.