[3.0] 4d87432 Add various flags to the panic output

Tollef Fog Heen tfheen at varnish-cache.org
Mon Aug 29 10:45:39 CEST 2011


commit 4d8743283ca0e311140fc1ea20596c954d06f03b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Aug 24 13:30:42 2011 +0000

    Add various flags to the panic output

diff --git a/bin/varnishd/cache_panic.c b/bin/varnishd/cache_panic.c
index ad02caa..2f0921d 100644
--- a/bin/varnishd/cache_panic.c
+++ b/bin/varnishd/cache_panic.c
@@ -242,6 +242,17 @@ pan_sess(const struct sess *sp)
 	VSB_printf(vsp, "  restarts = %d, esi_level = %d\n",
 	    sp->restarts, sp->esi_level);
 
+	VSB_printf(vsp, "  flags = ");
+	if (sp->wrk->do_stream)	VSB_printf(vsp, " do_stream");
+	if (sp->wrk->do_gzip)	VSB_printf(vsp, " do_gzip");
+	if (sp->wrk->do_gunzip)	VSB_printf(vsp, " do_gunzip");
+	if (sp->wrk->do_esi)	VSB_printf(vsp, " do_esi");
+	if (sp->wrk->do_close)	VSB_printf(vsp, " do_close");
+	if (sp->wrk->is_gzip)	VSB_printf(vsp, " is_gzip");
+	if (sp->wrk->is_gunzip)	VSB_printf(vsp, " is_gunzip");
+	VSB_printf(vsp, "\n");
+	VSB_printf(vsp, "  bodystatus = %d\n", sp->wrk->body_status);
+
 	pan_ws(sp->ws, 2);
 	pan_http("req", sp->http, 2);
 



More information about the varnish-commit mailing list