Skip to content

Commit

Permalink
Merge pull request #161 from kbrock/debug_sql
Browse files Browse the repository at this point in the history
Remove sql logger setup from specs
  • Loading branch information
Fryguy authored Aug 8, 2024
2 parents 78fdc6d + 329559d commit e0f76ab
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spec/support/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ def setup
I18n.enforce_available_locales = false if I18n.respond_to?(:enforce_available_locales=)
# I18n.fallbacks = [I18n.default_locale] if I18n.respond_to?(:fallbacks=)
end
log = Logger.new(STDERR)
# log = Logger.new('db.log')
# log.sev_threshold = Logger::DEBUG
log.level = Logger::Severity::UNKNOWN
ActiveRecord::Base.logger = log

@connection_options = YAML.safe_load(ERB.new(File.read("#{dirname}/database.yml")).result)[self.class.adapter]

self
Expand Down

0 comments on commit e0f76ab

Please sign in to comment.