aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/connections
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-12-19 18:44:04 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-12-19 18:44:04 +0000
commit55d248ba721dc417e1e9179b3b14f11e33abfa7b (patch)
treecea06914bb21c3b80ede880a0df2086ef987f82d /activerecord/test/connections
parent5f18fd93de332ed0807781701ff22b9b1ded03bb (diff)
downloadrails-55d248ba721dc417e1e9179b3b14f11e33abfa7b.tar.gz
rails-55d248ba721dc417e1e9179b3b14f11e33abfa7b.tar.bz2
rails-55d248ba721dc417e1e9179b3b14f11e33abfa7b.zip
use RAILS_DEFAULT_LOGGER in debug mode so we can log Dependencies activity
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/connections')
-rw-r--r--activerecord/test/connections/native_mysql/connection.rb4
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';