<div dir="ltr">Hi Geoff,<div><br></div><div>The intention was exactly as you guess, that the regular expression should only be applied to records that has the tag that goes with the regex. So this is indeed a bug. I will apply the patch. Thanks :)</div>
<div><br></div><div>Martin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 October 2013 11:59, Geoff Simmons <span dir="ltr"><<a href="mailto:geoff@uplex.de" target="_blank">geoff@uplex.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
Sorry about that empty mail.<br>
<br>
While trying to learn to use logexpect, I noticed that for expectations<br>
like these:<br>
<br>
expect 0 * FixedTag<br>
expect * = FooTag reg.x*<br>
<br>
... it would attempt the regex match for every log entry after the<br>
FixedTag, regardless of whether the entry has the FooTag. It continues<br>
until it hits an entry with a match, which may or may not have the FooTag.<br>
<br>
I may have misunderstood the intention here, but the attached patch<br>
ensures that the regex match is only attempted for log entries with the<br>
expected tag.<br>
<br>
<br>
Best,<br>
Geoff<br>
<div class="HOEnZb"><div class="h5">--<br>
** * * UPLEX - Nils Goroll Systemoptimierung<br>
<br>
Scheffelstraße 32<br>
22301 Hamburg<br>
<br>
Tel <a href="tel:%2B49%2040%202880%205731" value="+494028805731">+49 40 2880 5731</a><br>
Mob <a href="tel:%2B49%20176%20636%2090917" value="+4917663690917">+49 176 636 90917</a><br>
Fax <a href="tel:%2B49%2040%2042949753" value="+494042949753">+49 40 42949753</a><br>
<br>
<a href="http://uplex.de" target="_blank">http://uplex.de</a><br>
</div></div><br>_______________________________________________<br>
varnish-dev mailing list<br>
<a href="mailto:varnish-dev@varnish-cache.org">varnish-dev@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>
<div><table border="0" cellpadding="0" cellspacing="0" style="font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">
<tbody><tr><td width="100"><a href="http://varnish-software.com" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png"></a><span></span><span></span></td><td><strong style="font-size:14px;color:rgb(34,34,34)">Martin Blix Grydeland</strong><br>
Senior Developer | Varnish Software AS<br>Cell: +47 21 98 92 60<br><span style="font-weight:bold">We Make Websites Fly!</span></td></tr></tbody></table></div>
</div>