<div dir="ltr">Hi Rog,<div><br></div><div>I tried this but it causes unrelated test failures as tests which scan for output now no longer find anything as the global log level is raised to ERROR.</div><div><br></div><div>Maybe this is a bug.</div>
<div><br></div><div>Cheers</div><div><br></div><div>Dave</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 27, 2014 at 8:21 AM, roger peppe <span dir="ltr"><<a href="mailto:rogpeppe@gmail.com" target="_blank">rogpeppe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Alternatively you can run the tests with -juju.log ERROR (sent from my phone so unable to double check the extact syntax)</p>
<div class="gmail_quote"><div><div class="h5">On 26 Mar 2014 19:00, "Z. Nate Finch" <<a href="mailto:nate.finch@canonical.com" target="_blank">nate.finch@canonical.com</a>> wrote:<br type="attribution"></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">So, I often get failed tests that are so obscured by our log output that I can't even tell what's failing. So I made a little thing to filter out the logs. Yes, I'm sure you could do this with some bash stuff or grep or whatever, but I'll write bash when my job or my life depends on it, and not before. <div>
<br></div><div>just do </div><div><br></div><div>go get <a href="http://github.com/natefinch/nolog" target="_blank">github.com/natefinch/nolog</a></div><div><br></div><div>And then you can run nolog instead of go test. It passes arguments through, so you can do </div>
<div><br></div><div>nolog ./... -gocheck.v</div><div><br></div><div>(or whatever)</div><div>and it'll output everything except the lines that start with [LOG], which makes it a lot easier to see</div><div><br></div><div>
The filtering is really dumb, it just filters out lines that start with [LOG], but it seems to work fine for my needs.</div><div><br></div><div>-Nate</div></div>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></font></span></blockquote></div>
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></blockquote></div><br></div>