Skip to content

Commit

Permalink
Merge pull request #294 from gb-vinicius-cunha/patch-1
Browse files Browse the repository at this point in the history
update BatchDataSender to show the cause of IOException
  • Loading branch information
jasonjkeller authored Jul 15, 2022
2 parents d3fb700 + fd1fc6a commit aeb16de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ private Response sendPayload(byte[] payload, UUID requestId, String batchType)
} catch (IOException e) {
String message =
String.format(
"IOException (message: %s) while trying to send data to New Relic. %s retry recommended",
e.getMessage(), batchType);
"IOException (message: %s, cause: %s) while trying to send data to New Relic. %s retry recommended",
e.getMessage(), e.getCause(), batchType);
logger.warn(message);
throw new RetryWithBackoffException(message, e);
}
Expand Down

0 comments on commit aeb16de

Please sign in to comment.