From 77fdd94de0f21f2c7e4e26eba2168615702565ca Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 6 Jun 2024 09:04:25 -0700 Subject: [PATCH] Move logger require in adapter specs into debugging code not used by default --- spec/adapters/spec_helper.rb | 2 -- spec/guards_helper.rb | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/adapters/spec_helper.rb b/spec/adapters/spec_helper.rb index 5b394e544d..f327d41304 100644 --- a/spec/adapters/spec_helper.rb +++ b/spec/adapters/spec_helper.rb @@ -1,5 +1,3 @@ -require 'logger' - if ENV['COVERAGE'] require_relative "../sequel_coverage" SimpleCov.sequel_coverage(:group=>%r{lib/sequel/adapters}) diff --git a/spec/guards_helper.rb b/spec/guards_helper.rb index 424499fcf5..25bd9f6401 100644 --- a/spec/guards_helper.rb +++ b/spec/guards_helper.rb @@ -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