[master] 3105a4c Tune error messages given by varnishlog when loosing the log connection.

Martin Blix Grydeland martin at varnish-cache.org
Wed Oct 9 16:03:03 CEST 2013


commit 3105a4c95337ddcb096260a76d2bd580c5337d49
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue Oct 8 23:35:33 2013 +0200

    Tune error messages given by varnishlog when loosing the log
    connection.

diff --git a/lib/libvarnishtools/vut.c b/lib/libvarnishtools/vut.c
index 03127ec..7583c77 100644
--- a/lib/libvarnishtools/vut.c
+++ b/lib/libvarnishtools/vut.c
@@ -303,6 +303,7 @@ VUT_Main(VSLQ_dispatch_f *func, void *priv)
 			VUT.vslq = VSLQ_New(VUT.vsl, &c, VUT.g_arg, VUT.q_arg);
 			AN(VUT.vslq);
 			AZ(c);
+			VUT_Error(0, "Log reaquired");
 		}
 
 		i = VSLQ_Dispatch(VUT.vslq, func, priv);
@@ -329,7 +330,7 @@ VUT_Main(VSLQ_dispatch_f *func, void *priv)
 
 		if (i == -2) {
 			/* Abandoned */
-			VUT_Error(0, "Log abandoned - reopening");
+			VUT_Error(0, "Log abandoned");
 			VSM_Close(VUT.vsm);
 		} else if (i < -2) {
 			/* Overrun */



More information about the varnish-commit mailing list