[master] 62b13a5 Log begin/end and query from logexpect

Martin Blix Grydeland martin at varnish-cache.org
Tue Oct 1 14:48:17 CEST 2013


commit 62b13a57799ecfdbae71a0544f8943c1986c9ece
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Sep 18 17:01:20 2013 +0200

    Log begin/end and query from logexpect
    
    This to make it easier to see which logexpect of the test script is
    actually running.

diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index f2170b2..8a0f384 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -273,6 +273,9 @@ logexp_thread(void *priv)
 
 	i = 0;
 	AZ(le->test);
+	vtc_log(le->vl, 4, "beg|");
+	if (le->query != NULL)
+		vtc_log(le->vl, 4, "qry| %s", le->query);
 	logexp_next(le);
 	while (le->test) {
 		i = VSLQ_Dispatch(le->vslq, logexp_dispatch, le);
@@ -281,7 +284,7 @@ logexp_thread(void *priv)
 		if (i == 0 && le->test)
 			VTIM_sleep(0.01);
 	}
-	vtc_log(le->vl, 4, "end of test script");
+	vtc_log(le->vl, 4, "end|");
 
 	return (NULL);
 }



More information about the varnish-commit mailing list