Skip to content

Add syslog gem for Ruby 3.4+ compatibility#2664

Closed
neddp wants to merge 1 commit intomainfrom
fix-syslog-ruby-34-warning
Closed

Add syslog gem for Ruby 3.4+ compatibility#2664
neddp wants to merge 1 commit intomainfrom
fix-syslog-ruby-34-warning

Conversation

@neddp
Copy link
Member

@neddp neddp commented Feb 4, 2026

Takes care of the following error and any potential issues when we move to Ruby 3.4+:

warning: syslog was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.

Ruby 3.4+ will remove syslog from the standard library.
Explicitly adding it to Gemfile to silence deprecation warnings.
Copy link
Member

@aramprice aramprice left a comment

Choose a reason for hiding this comment

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

This change looks fine though I'd rather not add a transitive dependency to our Gemfile if we can help it.

This appears to be coming from the logging gem which has a guard around the loading of syslog[1] so I think we are ok w/o this change.

[1] https://github.com/TwP/logging/blob/master/lib/logging.rb#L9-L14

If this is annoying enough that we do want to make this addition to the Gemfile, let's move it next to where we specify

spec.add_dependency 'logging'

in the gemspec files with a comment noting that the dependency is there because of logging.

@github-project-automation github-project-automation bot moved this from Pending Review | Discussion to Waiting for Changes | Open for Contribution in Foundational Infrastructure Working Group Feb 6, 2026
@neddp
Copy link
Member Author

neddp commented Feb 6, 2026

Hi @aramprice,

Thank you for looking into this! I don't see a reason to add it since the logging gem is already handling it.

The warnings should stop appearing once we move to Ruby 3.4+.

@neddp neddp closed this Feb 6, 2026
@github-project-automation github-project-automation bot moved this from Waiting for Changes | Open for Contribution to Done in Foundational Infrastructure Working Group Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants