Skip to content

Commit 794ead9

Browse files
authored
Merge pull request #128 from riteshpuj2013/master
Adding Stacktrace-logging for the Exception thrown by Fahrschein and caught by us.
2 parents c08646f + f5d545f commit 794ead9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nakadi-producer/src/main/java/org/zalando/nakadiproducer/transmission/impl/EventTransmissionService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ private void tryToPublishBatch(List<BatchItem> batch) throws Exception {
107107
successfulEvents = batch.stream().map(BatchItem::getEventLogEntry);
108108
log.info("Sent {} events of type {}.", batch.size(), eventType);
109109
} catch (EventPublishingException e) {
110-
log.error("{} out of {} events of type {} failed to be sent.", e.getResponses().length, batch.size(), eventType);
110+
log.error("{} out of {} events of type {} failed to be sent. Exception ",
111+
e.getResponses().length, batch.size(), eventType, e);
111112
List<String> failedEids = collectEids(e);
112113
successfulEvents =
113114
batch.stream()

0 commit comments

Comments
 (0)