[master] 89ad403 Log t_open and t_idle on panic

Federico G. Schwindt fgsch at lodoss.net
Sat Mar 12 13:27:04 CET 2016


commit 89ad403287e54f7cc226b5ccf0020dfaca5efc7c
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sat Mar 12 11:08:05 2016 +0000

    Log t_open and t_idle on panic

diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 6a8409c..3819014 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -468,8 +468,11 @@ pan_sess(struct vsb *vsb, const struct sess *sp)
 		return;
 	VSB_indent(vsb, 2);
 	xp = XPORT_ByNumber(sp->sattr[SA_TRANSPORT]);
-	VSB_printf(vsb, "fd = %d, vxid = %u, transport = %s",
-	    sp->fd, VXID(sp->vxid),
+	VSB_printf(vsb, "fd = %d, vxid = %u,\n",
+	    sp->fd, VXID(sp->vxid));
+	VSB_printf(vsb, "t_open = %f,\n", sp->t_open);
+	VSB_printf(vsb, "t_idle = %f,\n", sp->t_idle);
+	VSB_printf(vsb, "transport = %s",
 	    xp == NULL ? "<none>" : xp->name);
 	if (xp != NULL && xp->sess_panic != NULL) {
 		VSB_printf(vsb, " {\n");



More information about the varnish-commit mailing list