Skip to content
Browse files

Change Logger for ActiveSupport::BufferedLogger

  • Loading branch information...
1 parent 32b9a28 commit 16a926efeb978d608f64b1a1c117d7b1304f742f @jyurek jyurek committed Aug 16, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −1 test/helper.rb
  2. +0 −1 test/integration_test.rb
View
2 test/helper.rb
@@ -57,7 +57,7 @@ def setup
FIXTURES_DIR = File.join(File.dirname(__FILE__), "fixtures")
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
-ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
+ActiveRecord::Base.logger = ActiveSupport::BufferedLogger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config['test'])
def reset_class class_name
View
1 test/integration_test.rb
@@ -363,7 +363,6 @@ def s3_headers_for attachment, style
:thumb => ["32x32#", :gif] },
:storage => :s3,
:whiny_thumbnails => true,
- # :s3_options => {:logger => Logger.new(StringIO.new)},
:s3_credentials => File.new(File.join(File.dirname(__FILE__), "s3.yml")),
:default_style => :medium,
:bucket => ENV['S3_TEST_BUCKET'],

0 comments on commit 16a926e

Please sign in to comment.
Something went wrong with that request. Please try again.