[LRUG] Rails SQL logging

Pratik pratiknaik at gmail.com
Wed Apr 7 08:49:00 PDT 2010


I like http://github.com/josevalim/rails-footnotes for these things.

On Wed, Apr 7, 2010 at 4:48 PM, Mr Jaba <the.jaba at gmail.com> wrote:
> As always there's something on github for it :)
>
> git://github.com/ntalbott/query_trace.git
>
> That does the trick.
>
> On 7 April 2010 16:44, Tim Cowlishaw <tim at timcowlishaw.co.uk> wrote:
>>
>> Hey all,
>>
>> 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?
>>
>> Cheers,
>>
>> Tim
>> _______________________________________________
>> Chat mailing list
>> Chat at lists.lrug.org
>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>



-- 
http://m.onkey.org | http://twitter.com/lifo



More information about the Chat mailing list