1

I've stopped seeing my app's SQL level logs. I only see the calls for the controllers.

Haven't changed any configuration.

config.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))

production.rb

Has anyone experience the same with Heroku?

Alex Pinsky
  • 315
  • 3
  • 14
  • possible duplicate of [Heroku: see params and sql activity in logs?](http://stackoverflow.com/questions/6427096/heroku-see-params-and-sql-activity-in-logs) – Rodrigo Jan 20 '15 at 12:00

1 Answers1

1

I had the same problem. I added

ActiveRecord::Base.logger = Logger.new(STDOUT) if defined?(ActiveRecord::Base)

to produciton.rb and it started showing the SQL queries in the log again.

borod108
  • 766
  • 1
  • 6
  • 16