As always there's something on github for it :)<br><br>git://<a href="http://github.com/ntalbott/query_trace.git">github.com/ntalbott/query_trace.git</a><br><br>That does the trick.<br><br><div class="gmail_quote">On 7 April 2010 16:44, Tim Cowlishaw <span dir="ltr"><<a href="mailto:tim@timcowlishaw.co.uk">tim@timcowlishaw.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hey all,<br>
<br>
It's just occured to me that I seem to spend a lot of time looking at horrendous SQL queries in my RAILS log then going through a convoluted process of trying to track down the line of code responsible for firing off that query, and was considering writing some sort of plugin to log the line of the ActiveRecord::Base method call that triggered it along with each query. However, I'm sure this must be a common problem. Anyone know if there's some sort of plugin (or a configuration option that I've overlooked) that does this already?<br>

<br>
Cheers,<br>
<br>
Tim<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div><br>