GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Ensure the logger gem is loaded in Rails 7.0 by ahukkanen · Pull Request #54264 · rails/rails

Conversation

@ahukkanen

@ahukkanen ahukkanen commented Jan 16, 2025 •
edited by fatkodima
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Motivation / Background

This Pull Request has been created because the concurrent-ruby gem's version 1.3.5 no longer loads the logger gem which breaks the internal logic of the ActiveSupport::LoggerThreadSafeLevel module.

This relates to the following commit in the concurrent-ruby gem included in version 1.3.5: ruby-concurrency/concurrent-ruby@d7ce956

Detail

This Pull Request changes the assumption that concurrent-ruby loads the logger gem.

Additional information

Fixes #54260
Fixes #54263

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Unrelated changes should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature. - Not sure how to test this as tests would need to be added for different versions of concurrent-ruby
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included. - I believe this is minor?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ansonhoyt and sidorchukandrew reacted with heart emoji
All reactions
  • ❤️ 2 reactions
@rails-bot rails-bot Bot added the activesupport label Jan 16, 2025
@ahukkanen
Ensure the logger gem is loaded in Rails 7.0
6a7c72c
Fix rails#54260, rails#54263
@ahukkanen
ahukkanen force-pushed the fix/7-0-logger-uninitialized-constant branch from 760cdbe to 6a7c72c Compare January 16, 2025 09:28
@fatkodima
fatkodima merged commit 491afff into rails:7-0-stable Jan 16, 2025
@ahukkanen
ahukkanen deleted the fix/7-0-logger-uninitialized-constant branch January 16, 2025 09:58
@mamhoff mamhoff mentioned this pull request Jan 16, 2025
Require "logger" as early as possible solidusio/solidus#6076
Closed
@mamhoff

mamhoff commented Jan 16, 2025

Copy link
Copy Markdown

Dearest Rails core team, I know how annoying this is, but can this commit be released on RubyGems? It's breaking all test suites that rely on a working Rails 7.0...

rhysb27, Fryguy, agrare, benjaminwil, ttstarck, twohlix, spaghetticode, menporulporiayalan, tim-gq, iainbeeston, and 11 more reacted with thumbs up emoji
All reactions
  • 👍 21 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eregon eregon mentioned this pull request Jan 16, 2025
Getting rid of logger breaks rails 7.0.8 on ruby 3.3.6 ruby-concurrency/concurrent-ruby#1077
Closed
@Fryguy Fryguy mentioned this pull request Jan 16, 2025
Remove dependency on logger ruby-concurrency/concurrent-ruby#1062
Merged
@rafaelfranca

rafaelfranca commented Jan 16, 2025

Copy link
Copy Markdown
Member

Dearest Rails core team, I know how annoying this is, but can this commit be released on RubyGems? It's breaking all test suites that rely on a working Rails 7.0...

You can point to the 7-0-stable branch. Rails 7.0 isn't supported anymore for bug fixes, so a release including that change is very unlikely https://rubyonrails.org/maintenance

Fryguy, ttstarck, twohlix, tekniklr, QuirkQ, wensiyuanseven, klnkt, jrafanie, agrare, zp34, and 9 more reacted with thumbs down emoji
All reactions
  • 👎 19 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@skipkayhil

skipkayhil commented Jan 16, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

You can also:

  • pin concurrent-ruby in the Gemfile: gem "concurrent-ruby", "< 1.3.5"
  • add logger to your Gemfile so it gets required by Bundler.require
  • require "logger" manually in your application

etc.

edit: Bundler.require actually happens too late, but the other two suggestions should still work

eregon, menporulporiayalan, wensiyuanseven, iagopuccini, PeterNotFound114, the-spectator, kanejamison, alvarez-antonio, mason-lynass, tbowzz, and ArisNance reacted with thumbs up emoji
All reactions
  • 👍 11 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mamhoff mamhoff mentioned this pull request Jan 16, 2025
4.2: Limit concurrent-ruby to < 1.3.5 solidusio/solidus#6077
Merged
fatkodima added a commit to fatkodima/online_migrations that referenced this pull request Jan 16, 2025
@fatkodima
Add logger to the gemfile
ed7e6e2
rails/rails#54264
@pelargir pelargir mentioned this pull request Jan 16, 2025
Fix duplicate menu items bug solidusio-contrib/solidus_reviews#130
Merged
Fryguy added a commit to Fryguy/manageiq that referenced this pull request Jan 16, 2025
@Fryguy
Pin concurrent-ruby to < 1.3.5
e4fa809
Temporary pin down as concurrent-ruby 1.3.5 breaks Rails 7.0, and rails-core doesn't
plan to ship a new 7.0 to fix it. See rails/rails#54264
@Fryguy Fryguy mentioned this pull request Jan 16, 2025
Pin concurrent-ruby to < 1.3.5 ManageIQ/manageiq#23310
Merged
@zzak zzak mentioned this pull request Jan 16, 2025
ActiveSupport Logger Initialization Fails in Non-Rails Applications After concurrent-ruby 1.3.5 Update #54272
Closed
pelargir added a commit to CandleScience/solidus_reviews that referenced this pull request Jan 16, 2025
@pelargir
Pin concurrent-ruby to v1.3.4 or earlier
4cd7fea
v1.3.5 no longer loads the logger gem. This breaks ActiveSupport.
See rails/rails#54264
tombye added a commit to alphagov/tech-docs-gem that referenced this pull request Jan 17, 2025
@tombye
Lock concurrent-ruby to 1.3.4
a7dc7dc
1.3.5 introduced a change that broke activesupport
(and so middleman, which uses it). It might be to
do with it dropping Logger as a dependency but
this is unclear. Full release notes are:

https://github.com/ruby-concurrency/concurrent-ruby/releases/tag/v1.3.5

The activesupport gem fixed this in v7-0-stable of
Rails:

rails/rails#54264

So we're waiting for middleman to pull that
version in. They have an issue for this:

middleman/middleman#2788
@skipkayhil skipkayhil mentioned this pull request Jan 17, 2025
rails -v for Version 7.0.4 Raises NameError for activesupport #54283
Closed
@westonganger westonganger mentioned this pull request Jan 17, 2025
Fix CI issues with logger and Rails 7.0 and below westonganger/active_snapshot#70
Merged
@kg8m kg8m mentioned this pull request Jan 18, 2025
Update RBS collection kg8m/tanshuku#588
Merged
@grzuy grzuy mentioned this pull request Jan 19, 2025
Fix CI rack/rack-attack#683
Merged
texpert added a commit to texpert/camaleon-cms that referenced this pull request Jan 19, 2025
@texpert
The concurrent-ruby gem's version 1.3.5 no longer loads the logger ge…
422edaf
…m which breaks the internal logic of the ActiveSupport::LoggerThreadSafeLevel module, so require `logger` as early as possible. See rails/rails#54264 (comment)
@michael-gratton michael-gratton mentioned this pull request Jan 21, 2025
Bumps actionpack from 7.0.8.5 to 7.0.8.7 GetUp/identity-tijuana#80
Open
eagletmt added a commit to cookpad/kuroko2 that referenced this pull request Jan 21, 2025
@eagletmt
Add workaround for rails/rails#54264
b64a2eb
@rakvium rakvium mentioned this pull request Jan 21, 2025
[src/api] Update concurrent-ruby 1.3.4 → 1.3.5 (patch) openSUSE/open-build-service#17277
Closed
@seanaery seanaery mentioned this pull request Jan 21, 2025
Uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger after concurrent-ruby 1.3.5 update projectblacklight/blacklight#3493
Closed
@mamantoha mamantoha mentioned this pull request Jan 21, 2025
require logger mamantoha/validates_nested_uniqueness#19
Merged
@Shaumik-Ashraf Shaumik-Ashraf mentioned this pull request Jan 21, 2025
Pin concurrent-ruby to 1.3.4 inferno-framework/inferno-core#596
Merged
michael-gratton added a commit to GetUp/identity-kooragang that referenced this pull request Jan 24, 2025
@michael-gratton
Workaround concurrent-ruby 1.3.5 dependency breakage
0be947a
See rails/rails#54264
eagletmt added a commit to cookpad/barbeque that referenced this pull request Jan 24, 2025
@eagletmt
Add workaround for rails/rails#54264
77d2444
@LeticiaErrandonea LeticiaErrandonea mentioned this pull request Jan 24, 2025
Bump concurrent-ruby from 1.3.4 to 1.3.5 wyeworks/nucore-open#4926
Closed
@casualhardcore casualhardcore mentioned this pull request Jan 27, 2025
Fix overwriting of low-level Kafka options with auth options Kuper-Tech/sbmt-kafka_producer#2
Merged
4 tasks done
michael-gratton added a commit to GetUp/identity-kooragang that referenced this pull request Jan 29, 2025
@michael-gratton
Workaround concurrent-ruby 1.3.5 dependency breakage
708304a
See rails/rails#54264
@K8Sewell K8Sewell mentioned this pull request Jan 29, 2025
Pin concurrent ruby yalelibrary/yul-dc-camerata#400
Merged
This was referenced Jan 30, 2025
Fix issues where active_record does not require logger properly ManageIQ/inventory_refresh#142
Merged
Fix issues where active_support does not require logger properly ManageIQ/more_core_extensions#127
Merged
Fix issues where active_support does not require logger properly ManageIQ/manageiq-api-client#132
Merged
Fix issues where active_support does not require logger properly ManageIQ/ovirt_metrics#60
Merged
@joaquinco joaquinco mentioned this pull request Jan 31, 2025
[Chore] Pin concurrent-ruby < 1.3.5 wyeworks/nucore-open#4978
Merged
@moritonal moritonal mentioned this pull request Feb 7, 2025
Build & tests currently failing rails/jbuilder#581
Closed
@cgunther cgunther mentioned this pull request Feb 12, 2025
Enable transactional fixtures in dummy app's specs drapergem/draper#943
Merged
@obregonia1 obregonia1 mentioned this pull request Feb 20, 2025
uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError) #54576
Closed
@JPrevost JPrevost mentioned this pull request Feb 21, 2025
Rails 7.0.8.7 MITLibraries/thing#1423
Merged
@chocoby chocoby mentioned this pull request Feb 22, 2025
Add explicit logger require for concurrent-ruby 1.3.5 compatibility chocoby/jp_prefecture#72
Merged
This was referenced Feb 23, 2025
Fix requiring logger, because concurrent-ruby isn't doing this anymore texpert/camaleon-cms#5
Merged
Fix requiring logger, because concurrent-ruby isn't doing this anymore owen2345/camaleon-cms#1110
Merged
@jas14 jas14 mentioned this pull request Feb 25, 2025
Fix CI: require logger before active_record splitwise/super_diff#277
Merged
@cgunther cgunther mentioned this pull request Mar 7, 2025
Support through_association with singleton. coorasse/cancancan#878
Closed
@toddkummer toddkummer mentioned this pull request Mar 9, 2025
Gem Updates RockSolt/filterameter#148
Merged
@StephenHulme StephenHulme mentioned this pull request Mar 18, 2025
[ruby] Update concurrent-ruby 1.3.4 → 1.3.4 (comment) sanger/sequencescape#4743
Merged
@aomrikti aomrikti mentioned this pull request Mar 27, 2025
TaxJP のバージョンアップ hybitz/hyacc#87
Closed
@and9000 and9000 mentioned this pull request Mar 29, 2025
Support Ruby 3.4 and make CI green again rswag/rswag#830
Merged
1 of 4 tasks
@trliner trliner mentioned this pull request Apr 23, 2025
Explicitly require logger library in spec_helper carrierwaveuploader/carrierwave-mongoid#217
Merged
@simi simi mentioned this pull request Jun 8, 2025
Add logger to deps and load in early in test Rails app. simplecov-ruby/simplecov#1131
Merged
@jrochkind jrochkind mentioned this pull request Sep 9, 2025
lock to old concurrent-ruby old rails, working around known dependency issue with logger in unmaintained older Rails samvera/browse-everything#444
Merged
@claude claude Bot mentioned this pull request Oct 3, 2025
Feature/bump 2025 02 21 03 govpf/mes-demarches#192
Merged
@ArSn ArSn mentioned this pull request Apr 24, 2026
ParrotOS: wpan scan fails to run with error "uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger wpscanteam/wpscan#1897
Closed
@TheFehr TheFehr mentioned this pull request Jul 10, 2026
Rails upgrade steps 3-4: bump Rails 6.1.6.1 to 8.0.5 and Ruby 2.7.5 to 3.4.10 stiftungswo/better-izivi#572
Merged
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

activesupport

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@ahukkanen @mamhoff @rafaelfranca @skipkayhil @jrochkind @jrafanie @fatkodima
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.