[6.0] b2f9f2fba Display the VCL syntax during a panic
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Feb 8 13:13:10 UTC 2019
commit b2f9f2fba172b280404790a114f253061e341691
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 d7a891802..410724e5d 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -212,6 +212,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