```ruby
require "logger"

Log = LOGGER if defined?(LOGGER)
Log ||= Logger.new(STDOUT)

ActiveRecord::Base.logger.level = Logger::WARN if ActiveRecord::Base.logger```

Fix failing specs due to LOGGER not being defined.
user
```ruby
require "logger"

unless defined?(LOGGER)
  LOGGER = Logger.new("/dev/null")
end

ActiveRecord::Base.logger.level = Logger::WARN if ActiveRecord::Base.logger```
assistant