[EMAIL PROTECTED] (Dag-Erling Smørgrav) writes:
> Anders Nordby <[EMAIL PROTECTED]> writes:
> > When using varnishlog -o, log entries for cache misses appear on the
> > same line as the preceding log entry:
> It's not just cache misses - it appears to happen whenever two
> VCL_call entries are logged in succession.  I noticed it on friday,
> but haven't had time to look into it yet.

The attached patch should fix it.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no

Index: bin/varnishlog/varnishlog.c
===================================================================
--- bin/varnishlog/varnishlog.c (revision 1369)
+++ bin/varnishlog/varnishlog.c (working copy)
@@ -114,7 +114,7 @@
        switch (tag) {
        case SLT_VCL_call:
                flg[fd] |= F_INVCL;
-               vsb_printf(ob[fd], "%5d %-12s %c %.*s",
+               vsb_printf(ob[fd], "%5d %-12s %c %.*s\n",
                    fd, VSL_tags[tag],
                    ((spec & VSL_S_CLIENT) ? 'c' : \
                    (spec & VSL_S_BACKEND) ? 'b' : '-'),
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to