From: lilydjwg Date: Tue, 1 May 2018 08:40:09 +0000 (+0800) Subject: ping plugin: warn on invalid AddressFamily value instead of error X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d57e8e17bff41587242dd91df72bdda8f105eae9;p=collectd.git ping plugin: warn on invalid AddressFamily value instead of error --- diff --git a/src/ping.c b/src/ping.c index b07a4247..b619e37a 100644 --- a/src/ping.c +++ b/src/ping.c @@ -488,9 +488,7 @@ static int ping_config(const char *key, const char *value) /* {{{ */ } else if (strncmp(af, "ipv6", 4) == 0) { ping_af = AF_INET6; } else { - ERROR("ping plugin: Bad address family: %s", af); - free(af); - return 1; + WARNING("ping plugin: Ignoring invalid AddressFamily value %s", af); } free(af);