Skip to content

Make all framework log subscribers API private - #55755

Merged
gmcgibbon merged 1 commit into
rails:mainfrom
Shopify:nodoc_log_subscribers
Sep 24, 2025
Merged

gmcgibbon merged 1 commit into
rails:mainfrom
Shopify:nodoc_log_subscribers

Conversation

@gmcgibbon

Copy link
Copy Markdown
Member

Motivation / Background

This Pull Request has been created because some log subscribers are currently public API and some aren't. I don't see any use of them being public, so let's just make them private.

Detail

This Pull Request changes framework LogSubscriber classes to be nodoc private.

Additional information

Since the introduction of structured event subscribers in #55690, we want to retire log subscribers in order to have one subscriber for each framework event instead of two (one currently emits a structured event and the other logs). We can't do this if some log subscribers are API public without a deprecation cycle. These event listeners are an implementation detail that don't need to be public anyway, so making them private seems appropriate.

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.
  • 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.

Adds nodoc to log subscribers so that they may be changed more easily
without breaking public API.
@gmcgibbon
gmcgibbon merged commit 65d7370 into rails:main Sep 24, 2025
@gmcgibbon
gmcgibbon deleted the nodoc_log_subscribers branch September 24, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants