开发者

Rails - See generated SQL queries in Log files

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜