Skip to content

Commit

Permalink
logging cause of send exception
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Dec 24, 2010
1 parent 5a2db5d commit ac6680d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/org/jgroups/protocols/TP.java
Expand Up @@ -1032,7 +1032,8 @@ public void run() {
}
catch(Throwable e) {
if(log.isErrorEnabled()) {
log.error("failed sending message to " + dest + " (" + msg.size() + " bytes): " + e);
log.error("failed sending message to " + (dest == null? "cluster" : dest) +
" (" + msg.size() + " bytes): " + e + ", cause: " + e.getCause());
}
}
return null;
Expand Down Expand Up @@ -1959,7 +1960,7 @@ private void sendBundledMessages(final Map<SingletonAddress,List<Message>> msgs)
doSend(buf, dest, multicast);
}
catch(Throwable e) {
if(log.isErrorEnabled()) log.error("exception sending bundled msgs: " + e.getMessage());
if(log.isErrorEnabled()) log.error("exception sending bundled msgs: " + e + ":, cause: " + e.getCause());
}
}
}
Expand Down

0 comments on commit ac6680d

Please sign in to comment.