From d96ebc8e6138a7ddf31401aa402bf835b614f3c6 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 24 Oct 2012 18:33:28 +0200 Subject: [PATCH] postgresql plugin: Fixed config key check for block. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit A missing "else" caused incorrect “Ignoring unknown config key "Statement"” warning messages. --- src/postgresql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postgresql.c b/src/postgresql.c index 9aa7a675..594fa32e 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -992,7 +992,7 @@ static int c_psql_config_writer (oconfig_item_t *ci) if (strcasecmp ("Statement", c->key) == 0) status = cf_util_get_string (c, &writer->statement); - if (strcasecmp ("StoreRates", c->key) == 0) + else if (strcasecmp ("StoreRates", c->key) == 0) status = cf_util_get_boolean (c, &writer->store_rates); else log_warn ("Ignoring unknown config key \"%s\".", c->key); -- 2.11.0