[master] 744e55d Log VSM/VSL errors in varnishtest
Martin Blix Grydeland
martin at varnish-software.com
Thu Mar 23 13:56:06 CET 2017
commit 744e55dc837c3be0a6761cfbc7406419a44d7cc0
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Wed Mar 22 17:58:28 2017 +0100
Log VSM/VSL errors in varnishtest
This might be useful for debugging
diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index 5941848..154952e 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -209,11 +209,15 @@ varnishlog_thread(void *priv)
if (c == NULL) {
VTIM_sleep(0.1);
if (VSM_Open(vsm)) {
+ vtc_log(v->vl, 3, "vsm|%s",
+ VSM_Error(vsm));
VSM_ResetError(vsm);
continue;
}
c = VSL_CursorVSM(vsl, vsm, opt);
if (c == NULL) {
+ vtc_log(v->vl, 3, "vsl|%s",
+ VSL_Error(vsl));
VSL_ResetError(vsl);
continue;
}
More information about the varnish-commit
mailing list