Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly require "logger" to fix good-job with Rails 6.1 #232

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

carlosantoniodasilva
Copy link
Member

Our Active Record / Rails 6.1. tests are failing with

activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:16:
in `<module:LoggerThreadSafeLevel>': uninitialized constant
ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

    Logger::Severity.constants.each do |severity|

Adding the explicit require is an attempt to fix those errors, and it shouldn't affect newer versions.

Failure sample: https://github.com/judoscale/judoscale-ruby/actions/runs/12830721399/job/35779717107

Our Active Record / Rails 6.1. tests are failing with

    activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:16:
    in `<module:LoggerThreadSafeLevel>': uninitialized constant
    ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

        Logger::Severity.constants.each do |severity|

Adding the explicit require is an attempt to fix those errors, and it
shouldn't affect newer versions.
@carlosantoniodasilva carlosantoniodasilva self-assigned this Jan 20, 2025
@carlosantoniodasilva carlosantoniodasilva marked this pull request as ready for review January 20, 2025 19:32
@carlosantoniodasilva carlosantoniodasilva merged commit 74e5d19 into main Jan 20, 2025
130 checks passed
@carlosantoniodasilva carlosantoniodasilva deleted the ca-good-job-tests branch January 20, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant