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
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
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: QueryTrace... ported to rails3 · GitHub
This should set up a log subscriber attached to ActiveRecord. However,
sql method in there never gets called. I’m not really sure what’s
happening. Has anyone had success or problems with this?