author | Florian Forster <octo@collectd.org> | |
Sun, 6 Nov 2016 21:17:02 +0000 (22:17 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 6 Nov 2016 21:17:05 +0000 (22:17 +0100) | ||
commit | f0481f16ff200ef93c6ea4487a7bc3a59c8f52cb | |
tree | a209f76ebc5ba5fae7805da6f9d8f4105fecf992 | tree | snapshot |
parent | f7e26c24f0f57dfc5057644cfd657f617a7bffb6 | commit | diff |
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
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 | diff | blob | history | |
src/write_kafka.c | diff | blob | history |