What exactly needs to happen in order to get detailed SQL logs out of heroku cedar?
On our dev platform the log trail gives us lots of information including insite into the SQL which is being executed by activerecord. In production the information is much less detailed.
What do i need to do to get this SQL information when i run
heroku logs --tail
Is there a setting i need to send to heroku or something i need to put into my rails code?
Thanks!
Heroku’s Logplex contains all logging statements from your application – there is no filtering of any kind.
By default, Rails does not log SQL statements in production so you’ll need to bump your log level in
production.rbto a level that is more suitable.http://guides.rubyonrails.org/debugging_rails_applications.html#log-levels