Skip to content

Commit

Permalink
Log partition of the failed write request to Kafka
Browse files Browse the repository at this point in the history
Having this information helps narrowing down the problematic kafka host.
  • Loading branch information
roa committed Jan 20, 2021
1 parent c083112 commit 4364315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static void
dr_msg_cb (UNUSED rd_kafka_t *rk, const rd_kafka_message_t *rkmessage, UNUSED void *opaque)
{
if (rkmessage->err)
logger_log("%s %d: Message delivery failed: %s\n", __FILE__, __LINE__, rd_kafka_err2str(rkmessage->err));
logger_log("%s %d: Message delivery failed: %s partition: %d\n", __FILE__, __LINE__, rd_kafka_err2str(rkmessage->err), rkmessage->partition);
}

static void
Expand Down

0 comments on commit 4364315

Please sign in to comment.