Skip to content

Commit

Permalink
Log message size if rd_kafka_produce fails
Browse files Browse the repository at this point in the history
  • Loading branch information
usmanm committed Jun 21, 2016
1 parent 50ac99e commit 9a811d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline_kafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ kafka_produce_msg(PG_FUNCTION_ARGS)

if (rd_kafka_produce(topic, partition, RD_KAFKA_MSG_F_COPY, VARDATA_ANY(msg), VARSIZE_ANY_EXHDR(msg),
key, keylen, NULL) == -1)
elog(ERROR, "failed to produce message: %s", rd_kafka_err2str(rd_kafka_errno2err(errno)));
elog(ERROR, "failed to produce message (size %ld): %s", VARSIZE_ANY_EXHDR(msg), rd_kafka_err2str(rd_kafka_errno2err(errno)));

rd_kafka_poll(MyKafka, 0);

Expand Down

0 comments on commit 9a811d5

Please sign in to comment.