Coming from a javascript background, I find the command line while running rails to be cluttered. Every time something happens, my command line is filled with a bunch of crap. E.g:
[2013-06-19 20:25:53] WARN Could not determine content-length of response body.
Set content-length of the response or set Response#chunked = true
How do I turn this off so that I only see my own logs(and errors, of course)?
Any help is appreciated!
Try changing the log level, which is info by default.
From the Guides: http://guides.rubyonrails.org/debugging_rails_applications.html#log-levels
Change the log level in config/environments/development.rb
, and/or testing.rb
:
config.log_level = :error
The log levels available are: :debug
, :info
, :warn
, :error
, :fatal
, and :unknown
, which correspond to the integers 0
-5
.
You can turn off the SQL queries. I know they take a lot of room.
Disable Rails SQL logging in console
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With