Skip to content

Conversation

@akihikodaki
Copy link

Requiring syslog on Ruby 3.3.0 results in an warning if the gem is not explicitly installed. Suppress it by requiring syslog only when the user tries to use Logging::Appender::Syslog.

Requiring syslog on Ruby 3.3.0 results in an warning if the gem is not
explicitly installed. Suppress it by requiring syslog only when the user
tries to use Logging::Appender::Syslog.
@Nik08
Copy link

Nik08 commented Aug 6, 2024

Can we have this PR reviewed and merged? Need the warning resolution for syslog.
Will be really helpful if this issue could be closed :)

@tas50
Copy link

tas50 commented Aug 15, 2025

It would be really great to get this one shipped to avoid these warnings in CI and soon breakage for users

@@ -1,18 +1,7 @@

Choose a reason for hiding this comment

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

Along with this change, should this PR also include syslog in the gemspec file, as it will be removed from the default gems in Ruby 3.4.0 (currently outputs a console warning to that effect).

Copy link
Author

Choose a reason for hiding this comment

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

This PR intentionally avoids including syslog in the gemspec file to avoid having an extra dependency for users who do not need Logging::Appender::Syslog.
Users who need Logging::Appender::Syslog should explicitly state that they need syslog by adding it to the gemspec files of their applications to prepare for Ruby 3.4.0.

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.

4 participants