Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 048866aa14b34781f4472d02c5974cce0a7f4e5f 1 parent 2268859
@yahonda yahonda authored
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'
Please sign in to comment.
Something went wrong with that request. Please try again.