[master] fba1456 Report which param setting failed, this is not obvious during startup.
Poul-Henning Kamp
phk at varnish-cache.org
Tue Jan 25 11:15:42 CET 2011
commit fba14565d17114a446ad6a9c85bd6d63156e75c8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Jan 25 10:07:04 2011 +0000
Report which param setting failed, this is not obvious during startup.
diff --git a/bin/varnishd/mgt_param.c b/bin/varnishd/mgt_param.c
index f126736..2f71eef 100644
--- a/bin/varnishd/mgt_param.c
+++ b/bin/varnishd/mgt_param.c
@@ -954,6 +954,8 @@ MCF_ParamSet(struct cli *cli, const char *param, const char *val)
if (pp != NULL) {
pp->func(cli, pp, val);
if (cli->result != CLIS_OK) {
+ cli_out(cli, "(attempting to set param %s to %s)\n",
+ pp->name, val);
} else if (child_pid >= 0 && pp->flags & MUST_RESTART) {
cli_out(cli, "Change will take effect"
" when child is restarted");
More information about the varnish-commit
mailing list