disabling color sql logs in rails

I use Aptana IDE (Eclipse) and the escape characters do not look nice in the default console. The way to prevent this is to do:

ActiveRecord::Base.colorize_logging = false

for example in your development.rb file.

I mean rails 2.3.4. If this does not work for you (other version of rails or whatever) just look at the format_log_entry(message, dump = nil) method of class AbstractAdapter in your rails environment RAILS_HOME/active_record/connection_adapters/abstract_adapter or something.

Posted by wojtek Thu, 05 Nov 2009 14:39:00 GMT




Comments

Leave a response

Leave a comment