I understand that the default since 3.1 is not to log to development.log 
anymore and simply display SQL inline in the console (STDOUT). This is fine 
with me, and I know I can change it by reassigning the 
`ActiveRecord::Base.logger` to e.g. `Rails.logger`.

However, I can't seem to get any of the query tracing gems to show me the 
origin of the SQL queries (bullet, sql-logging, query_trace, 
active-record-query-trace). As far as I can tell I've configured these 
correctly and their config setting is enabled as `true`...

For example, I've tried using this: https://gist.github.com/1942451

This should set up a log subscriber attached to ActiveRecord. However, the 
sql method in there never gets called. I'm not really sure what's 
happening. Has anyone had success or problems with this?

Thanks,
Andrew Vit

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/y2Cd-glOVCAJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to