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.
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
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?