r822 - trunk/varnish-cache/bin/varnishlog

phk at projects.linpro.no phk at projects.linpro.no
Fri Aug 11 22:47:28 CEST 2006


Author: phk
Date: 2006-08-11 22:47:28 +0200 (Fri, 11 Aug 2006)
New Revision: 822

Modified:
   trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
When -b and -c given, supress "other" messages.


Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-11 20:46:08 UTC (rev 821)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-11 20:47:28 UTC (rev 822)
@@ -48,7 +48,8 @@
 	(void)priv;
 
 	if (!(spec & (VSL_S_CLIENT|VSL_S_BACKEND))) {
-		VSL_H_Print(stdout, tag, fd, len, spec, ptr);
+		if (!bflag && !cflag)
+			VSL_H_Print(stdout, tag, fd, len, spec, ptr);
 		return (0);
 	}
 	if (ob[fd] == NULL) {




More information about the varnish-commit mailing list