r4578 - trunk/varnish-cache/bin/varnishtest

phk at projects.linpro.no phk at projects.linpro.no
Thu Feb 18 12:48:32 CET 2010


Author: phk
Date: 2010-02-18 12:48:32 +0100 (Thu, 18 Feb 2010)
New Revision: 4578

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc_log.c
Log:
Don't emit confusing messages about errors during cleanup



Modified: trunk/varnish-cache/bin/varnishtest/vtc_log.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_log.c	2010-02-18 10:47:16 UTC (rev 4577)
+++ trunk/varnish-cache/bin/varnishtest/vtc_log.c	2010-02-18 11:48:32 UTC (rev 4578)
@@ -123,6 +123,8 @@
 static void
 vtc_log_emit(struct vtclog *vl, unsigned lvl)
 {
+	if (vtc_stop && lvl == 0)
+		return;
 	AZ(pthread_mutex_lock(&vtclog_mtx));
 	vsb_cat(vtclog_full, vsb_data(vl->vsb));
 	AZ(pthread_mutex_unlock(&vtclog_mtx));



More information about the varnish-commit mailing list