Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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/error calls.

How can I disable rendering logging?

like image 428
Alex Avatar asked Oct 13 '22 20:10

Alex


1 Answers

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

like image 174
Jed Schneider Avatar answered Nov 10 '22 00:11

Jed Schneider