Skip to content

Commit

Permalink
update log message
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Aug 5, 2014
1 parent 0c8f3d7 commit 69de265
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -238,11 +238,11 @@ public RemoteNodeStatus loadDataFromPull(Node remote) throws IOException {
}

public void loadDataFromPull(Node remote, RemoteNodeStatus status) throws IOException {
Node local = nodeService.findIdentity();
if (local == null) {
local = new Node(this.parameterService, symmetricDialect);
}
try {
Node local = nodeService.findIdentity();
if (local == null) {
local = new Node(this.parameterService, symmetricDialect);
}
NodeSecurity localSecurity = nodeService.findNodeSecurity(local.getNodeId());
IIncomingTransport transport = null;
if (remote != null && localSecurity != null) {
Expand Down Expand Up @@ -307,8 +307,8 @@ public void loadDataFromPull(Node remote, RemoteNodeStatus status) throws IOExce
nodeService.findIdentity(false);
} else {
log.warn(
"Node '{}' must not have a security record to allow communication. Will try again on the next pull",
remote.getNodeId());
"Failed to pull data from node '{}'. It probably is missing a node security record for '{}'.",
remote.getNodeId(), local.getNodeId());
}
} catch (MalformedURLException e) {
if (remote != null) {
Expand Down

0 comments on commit 69de265

Please sign in to comment.