Code

varnish: hint about missing <Instance> block
authorMarc Fournier <marc.fournier@camptocamp.com>
Fri, 17 May 2013 11:13:43 +0000 (13:13 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Fri, 17 May 2013 11:13:43 +0000 (13:13 +0200)
The warning when the Collect* configuration options where used outside
of an <Instance> block was confusing. This patch warns the user the same
way the apache plugin does.

src/varnish.c

index 602f47af6231f59d40b51ccbd86800d1ca31bf3d..5de3389d862eb41828b5fb73a55f1d5fe2197104 100644 (file)
@@ -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 <Instance /> "
+                                       "block around the configuration?",
                                        child->key);
                }
        }