开发者

Rails - See generated SQL queries in Log files

开发者 https://www.devze.com 2023-01-19 01:38 出处:网络
Is there a way to s开发者_JAVA百科ee all generated queries from rails in production environment like you can in development?Yes you can. If you go in the config/environments/production.rb file, there\

Is there a way to s开发者_JAVA百科ee all generated queries from rails in production environment like you can in development?


Yes you can. If you go in the config/environments/production.rb file, there's a section like this:

# See everything in the log (default is :info)
# config.log_level = :debug

Uncomment the config.log_level line, and you'll get the same log in production as you would in dev.

0

精彩评论

暂无评论...
验证码 换一张
取 消