[master] ca8dda4 Make vcl.use slightly more chatty

Tollef Fog Heen tfheen at varnish-cache.org
Mon Dec 3 12:52:56 CET 2012


commit ca8dda44cf4c7a6460093c37c7b9129f60effdc6
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Mon Dec 3 12:52:15 2012 +0100

    Make vcl.use slightly more chatty
    
    Output that we've switched VCLs and which one we have switched to when
    using vcl.use.
    
    Fixes #1232

diff --git a/bin/varnishd/mgt/mgt_vcc.c b/bin/varnishd/mgt/mgt_vcc.c
index d2d077f..28ac476 100644
--- a/bin/varnishd/mgt/mgt_vcc.c
+++ b/bin/varnishd/mgt/mgt_vcc.c
@@ -607,6 +607,7 @@ mcf_config_use(struct cli *cli, const char * const *av, void *priv)
 		VCLI_SetResult(cli, status);
 		VCLI_Out(cli, "%s", p);
 	} else {
+		VCLI_Out(cli, "VCL '%s' now active", av[2]);
 		vp->active = 2;
 		VTAILQ_FOREACH(vp, &vclhead, list) {
 			if (vp->active == 1)



More information about the varnish-commit mailing list