Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 5, 2012
1 parent 4497bea commit 450678b
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -300,11 +300,18 @@ public void registerWithServer() {

protected void sendInitialLoadFromRegisteredNode() {
if (parameterService.is(ParameterConstants.AUTO_RELOAD_REVERSE_ENABLED)) {
boolean queuedLoad = false;
List<Node> nodes = new ArrayList<Node>();
nodes.addAll(nodeService.findTargetNodesFor(NodeGroupLinkAction.P));
nodes.addAll(nodeService.findTargetNodesFor(NodeGroupLinkAction.W));
for (Node node : nodes) {
log.info("Enabling an initial load to {}", node.getNodeId());
nodeService.setInitialLoadEnabled(node.getNodeId(), true);
queuedLoad = true;
}

if (!queuedLoad) {
log.info("{} was enabled but no nodes were linked to load", ParameterConstants.AUTO_RELOAD_REVERSE_ENABLED);
}
}
}
Expand Down

0 comments on commit 450678b

Please sign in to comment.