Search code examples
sqlruby-on-railsproduction-environment

Rails: Show SQL Queries in Production Log


How can we enabled SQL query logging in production environment?

Thanks,

Imran


Solution

  • In your environments/production.rb

    config.log_level = :debug
    

    Remember you need to restart the web server to apply the changes.