Skip to content

Conversation

@bensheldon
Copy link
Contributor

@bensheldon bensheldon commented Mar 20, 2025

CI fix for uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError) which happens because newer versions of Concurrent-Ruby removed a dependency on Logger but older versions of Rails aren't compatible with that.

Copilot AI review requested due to automatic review settings March 20, 2025 22:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the "logger" gem to the Gemfile to address the removal of the dependency for Concurrent-Ruby in Rails 6.1.

  • Added gem "logger" in the Gemfile with an inline comment for context.

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

Gemfile Outdated
gem "activerecord", "~> #{ENV['RAILS_VERSION'] || DEFAULT_RAILS_VERSION}"
end

gem "logger" # fix for Rails 6.1 + Concurrent-Ruby
Copy link

Copilot AI Mar 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider specifying a version constraint for the 'logger' gem to ensure compatibility in the future, similar to the other gems in the file.

Suggested change
gem "logger" # fix for Rails 6.1 + Concurrent-Ruby
gem "logger", "~> 1.4" # fix for Rails 6.1 + Concurrent-Ruby

Copilot uses AI. Check for mistakes.
@bensheldon bensheldon changed the title Add logger to Gemfile to fix Concurrent-Ruby removing the dependency Add logger to Gemfile to fix build because Concurrent-Ruby removed the dependency Mar 20, 2025
@bensheldon bensheldon changed the title Add logger to Gemfile to fix build because Concurrent-Ruby removed the dependency @bensheldon Explicitly require logger to fix Concurrent-Ruby removing the dependency Mar 20, 2025
@bensheldon bensheldon changed the title @bensheldon Explicitly require logger to fix Concurrent-Ruby removing the dependency Explicitly require logger to fix Concurrent-Ruby removing the dependency Mar 20, 2025
@bensheldon bensheldon added the bug label Mar 20, 2025
@bensheldon bensheldon changed the title Explicitly require logger to fix Concurrent-Ruby removing the dependency [CI only] Explicitly require logger to fix Concurrent-Ruby removing the dependency Mar 20, 2025
@bensheldon bensheldon merged commit 0ae3639 into master Mar 21, 2025
27 checks passed
@mgriffin mgriffin deleted the rails61 branch June 6, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants