Skip to content
Browse files

small tweak

  • Loading branch information...
1 parent 3fdbd2d commit 8723db0c2cba2609cf12ed2d0a06594bff75963f Dean Hiller committed Dec 11, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/playorm/cron/impl/CheckClusterRunnable.java
View
6 src/main/java/org/playorm/cron/impl/CheckClusterRunnable.java
@@ -77,20 +77,20 @@ public void runImpl() {
int serverNumber = -1;
for(int i = 0; i < servers.size(); i++) {
WebNodeDbo node = servers.get(i);
- String name = node.getWebServerName();
if(node.getWebServerName().equals(config.getHostName())) {
if(log.isDebugEnabled())
log.debug("we are server number="+i+" out of number="+servers.size());
serverNumber = i;
break;
- }
+ } else if(log.isDebugEnabled())
+ log.debug("server name="+node.getWebServerName()+" not match name="+config.getHostName());
}
if(servers.size() <= 0) {
log.warn("We are just starting the first server or all servers were down");
return;
} else if(serverNumber == -1)
- throw new IllegalStateException("serverNumber not found in list of servers="+all+" config hostname='"+config.getHostName()+"'");
+ throw new IllegalStateException("serverNumber not found in list of servers="+all+" config hostname='"+config.getHostName()+"' serverslist="+servers);
runOurMonitors(mgr, servers.size(), serverNumber);
}

0 comments on commit 8723db0

Please sign in to comment.
Something went wrong with that request. Please try again.