Code

write_kafka plugin: Fix support for librdkafka 0.9.0.
authorFlorian Forster <octo@collectd.org>
Sun, 6 Nov 2016 21:17:02 +0000 (22:17 +0100)
committerFlorian Forster <octo@collectd.org>
Sun, 6 Nov 2016 21:17:05 +0000 (22:17 +0100)
commitf0481f16ff200ef93c6ea4487a7bc3a59c8f52cb
treea209f76ebc5ba5fae7805da6f9d8f4105fecf992
parentf7e26c24f0f57dfc5057644cfd657f617a7bffb6
write_kafka plugin: Fix support for librdkafka 0.9.0.

Use rd_kafka_set_logger() only when rd_kafka_conf_set_log_cb() is not
available:

    write_kafka.c: In function 'kafka_handle':
    write_kafka.c:119:6: error: 'rd_kafka_set_logger' is deprecated (declared at /usr/local/include/librdkafka/rdkafka.h:2400) [-Werror=deprecated-declarations]
          rd_kafka_set_logger(ctx->kafka, kafka_log);
          ^

Fixes: #2029
configure.ac
src/write_kafka.c