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 602f47a..5de3389 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);
                }
        }