diff options
Diffstat (limited to 'activerecord/test/connections/native_mysql')
-rw-r--r-- | activerecord/test/connections/native_mysql/connection.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/connections/native_mysql/connection.rb b/activerecord/test/connections/native_mysql/connection.rb index ff6bda51bb..64539248d2 100644 --- a/activerecord/test/connections/native_mysql/connection.rb +++ b/activerecord/test/connections/native_mysql/connection.rb @@ -2,7 +2,9 @@ print "Using native MySQL\n" require_dependency 'fixtures/course' require 'logger' -ActiveRecord::Base.logger = Logger.new("debug.log") +RAILS_DEFAULT_LOGGER = Logger.new('debug.log') +RAILS_DEFAULT_LOGGER.level = Logger::DEBUG +ActiveRecord::Base.logger = RAILS_DEFAULT_LOGGER # GRANT ALL PRIVILEGES ON activerecord_unittest.* to 'rails'@'localhost'; # GRANT ALL PRIVILEGES ON activerecord_unittest2.* to 'rails'@'localhost'; |