From 3a04e4fb3a14cb09fa162365d50fd08631290a82 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 11 Aug 2006 20:47:28 +0000 Subject: [PATCH] When -b and -c given, supress "other" messages. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@822 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishlog/varnishlog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishlog/varnishlog.c b/varnish-cache/bin/varnishlog/varnishlog.c index 45547d9a..6afae549 100644 --- a/varnish-cache/bin/varnishlog/varnishlog.c +++ b/varnish-cache/bin/varnishlog/varnishlog.c @@ -48,7 +48,8 @@ h_order(void *priv, unsigned tag, unsigned fd, unsigned len, unsigned spec, cons (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) { -- 2.39.5