开发者

How to make Rails stop logging every page rendering?

On my production server I get thousands of

Started GET ... Completed 200 OK

In production.log

This definitely eats resources: Rails needs to write this unnecessary info down, and it takes precious server space.

Besides I want to see only error reports and my own logger.info/e开发者_如何学运维rror calls.

How can I disable rendering logging?


take a look at your config/environments/production.rb file for the config.log_level variable.

Keep in mind however, that on a database failure, you can use the info statements to recreate data lost via user input between last db backup and database restore.

other tips and suggestions here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜