Skip to content

Commit

Permalink
fix: Add exception message in callback message
Browse files Browse the repository at this point in the history
  • Loading branch information
izaaz committed Aug 21, 2024
1 parent ce53136 commit 1a72e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/amplitude/HttpTransport.java
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ public void run() {
callbackMessage = "Unknown response status.";
}
} catch (Exception exception) {
callbackMessage = "Error sending events due to the exception: " + exception.getMessage();
logger.error("Flush Thread Error", Utils.getStackTrace(exception));
logger.error("Error event payload", events.toString());
} finally {
Expand Down

0 comments on commit 1a72e0f

Please sign in to comment.