Permalink
Browse files

Revert "truncate debug.log on each test run"

This reverts commit 98043c6.

Because if every time `debug.log` is truncated,
developers have no way to see the previous ActiveRecord unit test results.
`debug.log` file can be easily reduced
by executing `$ touch /dev/null > debug.log` periodically.
  • Loading branch information...
1 parent 2268859 commit 048866aa14b34781f4472d02c5974cce0a7f4e5f @yahonda yahonda committed Oct 19, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/test/support/connection.rb
View
3 activerecord/test/support/connection.rb
@@ -13,8 +13,7 @@ def self.connection_config
def self.connect
puts "Using #{connection_name}"
- file = File.open('debug.log', 'w')
- ActiveRecord::Model.logger = ActiveSupport::Logger.new(file)
+ ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log")
ActiveRecord::Model.configurations = connection_config
ActiveRecord::Model.establish_connection 'arunit'
ARUnit2Model.establish_connection 'arunit2'

0 comments on commit 048866a

Please sign in to comment.