Skip to content

Commit

Permalink
kafka: Display error messages on error for rd_kafka_conf_set()
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Jan 22, 2025
1 parent eeaf65e commit 8175f82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flb_kafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ rd_kafka_conf_t *flb_kafka_conf_create(struct flb_kafka *kafka,
flb_sds_len(kv->key) > 8) {
if (rd_kafka_conf_set(kafka_cfg, kv->key + 8, kv->val,
errstr, sizeof(errstr)) != RD_KAFKA_CONF_OK) {
flb_error("[flb_kafka] cannot configure '%s' property", kv->key + 8);
flb_error("[flb_kafka] cannot configure '%s' property with error: '%s'",
kv->key + 8, errstr);
}
}
}
Expand Down

0 comments on commit 8175f82

Please sign in to comment.