From: Marc Fournier Date: Fri, 17 May 2013 11:13:43 +0000 (+0200) Subject: varnish: hint about missing block X-Git-Tag: collectd-5.3.1~4^2~4^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5dc8a8ccd8fa0582a83b9e37bbde8f669bc06fca;p=collectd.git varnish: hint about missing block The warning when the Collect* configuration options where used outside of an block was confusing. This patch warns the user the same way the apache plugin does. --- diff --git a/src/varnish.c b/src/varnish.c index 602f47af..5de3389d 100644 --- a/src/varnish.c +++ b/src/varnish.c @@ -603,7 +603,9 @@ static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */ else { WARNING ("Varnish plugin: Ignoring unknown " - "configuration option: \"%s\"", + "configuration option: \"%s\". Did " + "you forget to add an " + "block around the configuration?", child->key); } }