Search code examples
ruby-on-railspuma

Rails: Puma server 3 not showing database queries in development


I upgraded Puma to version 3. When I start the development server (rails s -b0.0.0.0), the console only shows the requests, not the actual database queries as before (version <= 3). I couldn't find an option for it.

How can I see the database queries in the development console?

Thanks in advance!


Solution

  • Try adding ActiveRecord::Base.logger.level = Logger::DEBUG to your environments.rb

    or config.log_level = :debug environments/development.rb