Skip to content

Commit

Permalink
Move logger require in adapter specs into debugging code not used by …
Browse files Browse the repository at this point in the history
…default
  • Loading branch information
jeremyevans committed Jun 7, 2024
1 parent c1548a2 commit 77fdd94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/adapters/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'logger'

if ENV['COVERAGE']
require_relative "../sequel_coverage"
SimpleCov.sequel_coverage(:group=>%r{lib/sequel/adapters})
Expand Down
2 changes: 2 additions & 0 deletions spec/guards_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def cspecify(message, *checked, &block)
end

class Minitest::HooksSpec
# Not used by default, only for debugging
def log
require 'logger'
begin
DB.loggers << Logger.new(STDOUT)
yield
Expand Down

0 comments on commit 77fdd94

Please sign in to comment.