aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/support
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-20 17:09:27 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-20 17:09:27 -0300
commit64391cd520cd8aee2c8b9ba1b95e4aae4512a6a0 (patch)
treec75346ada7240e32d492d1c1bff05a2980341309 /activerecord/test/support
parent3be9e8a0c2187744b6c9879ca2836cef5ebed693 (diff)
downloadrails-64391cd520cd8aee2c8b9ba1b95e4aae4512a6a0.tar.gz
rails-64391cd520cd8aee2c8b9ba1b95e4aae4512a6a0.tar.bz2
rails-64391cd520cd8aee2c8b9ba1b95e4aae4512a6a0.zip
Rotate the debug.log on each 100MB
Diffstat (limited to 'activerecord/test/support')
-rw-r--r--activerecord/test/support/connection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/support/connection.rb b/activerecord/test/support/connection.rb
index 92736e0ca9..bea894a583 100644
--- a/activerecord/test/support/connection.rb
+++ b/activerecord/test/support/connection.rb
@@ -13,7 +13,7 @@ module ARTest
def self.connect
puts "Using #{connection_name}"
- ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log")
+ ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log", 0, 100 * 1024 * 1024)
ActiveRecord::Model.configurations = connection_config
ActiveRecord::Model.establish_connection 'arunit'
ARUnit2Model.establish_connection 'arunit2'