In my rails 4 logs I get a log of garbage like this:
^{[1m^{[36mPerson Load (0.7ms)^{[0m ^{[1mSELECT "people".* FROM "people"
WHERE "people"."id" = $1 LIMIT 1^{[0m [["id", 673143]]
How can I tell rails 4 to turn this coloring off ?
I tried to add config.active_record.colorize_logging = false
to config/application.rb
but I got this error:
/home/sweerasinghe/trunk_1509171953/vendors/ruby-2.2.2/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `colorize_logging=' for ActiveRecord::Base:Class (NoMethodError)
You want this:
config.colorize_logging = false
This is documented in the Rails General Configuration section of the Configurating Rails Applications Rails Guide.
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