[master] fb4b6d693 Display the VCL syntax during a panic

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Dec 4 15:04:07 UTC 2018


commit fb4b6d6938be6df2506cd6e5eeac1434b8f231a7
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Dec 4 16:01:13 2018 +0100

    Display the VCL syntax during a panic

diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index a5a33cf9b..30dee548b 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -211,6 +211,7 @@ VCL_Panic(struct vsb *vsb, const struct vcl *vcl)
 		VSB_printf(vsb, "conf = NULL\n");
 	} else {
 		PAN_CheckMagic(vsb, vcl->conf, VCL_CONF_MAGIC);
+		VSB_printf(vsb, "syntax = \"%d\",\n", vcl->conf->syntax);
 		VSB_printf(vsb, "srcname = {\n");
 		VSB_indent(vsb, 2);
 		for (i = 0; i < vcl->conf->nsrc; ++i)


More information about the varnish-commit mailing list