RAILS_DEFAULT_LOGGER is deprecated, use Rails.logger.error instead