Commit 88893ca15f1aa20fa148e76cbccb6b7e4cfd320f
1 parent
6a83c3a5
Exists in
master
and in
17 other branches
Log to stdout with VERBOSE flag [skip ci]
Showing
2 changed files
with
2 additions
and
6 deletions
Show diff stats
test/support/activerecord.rb
1 | 1 | require "active_record" |
2 | 2 | |
3 | 3 | # for debugging |
4 | -ActiveRecord::Base.logger = Logger.new(STDOUT) if ENV["VERBOSE"] | |
4 | +ActiveRecord::Base.logger = ActiveSupport::Logger.new(STDOUT) if ENV["VERBOSE"] | |
5 | 5 | |
6 | 6 | # rails does this in activerecord/lib/active_record/railtie.rb |
7 | 7 | ActiveRecord::Base.default_timezone = :utc | ... | ... |
test/test_helper.rb
... | ... | @@ -10,11 +10,7 @@ Searchkick.index_suffix = ENV["TEST_ENV_NUMBER"] |
10 | 10 | |
11 | 11 | ENV["RACK_ENV"] = "test" |
12 | 12 | |
13 | -if !defined?(ParallelTests) || ParallelTests.first_process? | |
14 | - File.delete("elasticsearch.log") if File.exist?("elasticsearch.log") | |
15 | -end | |
16 | - | |
17 | -Searchkick.client.transport.logger = Logger.new("elasticsearch.log") | |
13 | +Searchkick.client.transport.logger = ActiveSupport::Logger.new(STDOUT) if ENV["VERBOSE"] | |
18 | 14 | Searchkick.search_timeout = 5 |
19 | 15 | |
20 | 16 | if defined?(Redis) | ... | ... |