Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Added more details on exceptions for TCP/UDP senders
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Mar 4, 2014
1 parent 64fb0db commit 09487bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public boolean sendMessage(GelfMessage message) {

return true;
} catch (IOException e) {
errorReporter.reportError(e.getMessage(), e);
errorReporter.reportError(e.getMessage(), new IOException("Cannot send data to " + host + ":" + port, e));
// if an error occours, signal failure
socket = null;
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private boolean sendDatagrams(ByteBuffer[] bytesList) {
channel.write(buffer);
}
} catch (IOException e) {
errorReporter.reportError(e.getMessage(), e);
errorReporter.reportError(e.getMessage(), new IOException("Cannot send data to " + host + ":" + port, e));
return false;
}

Expand Down

0 comments on commit 09487bf

Please sign in to comment.