8000 Add container.preload tag on all handlers by fancyweb · Pull Request #350 · symfony/monolog-bundle · GitHub
[go: up one dir, main page]

Skip to content

Add container.preload tag on all handlers #350

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

Conversation

fancyweb
Copy link
Contributor
@fancyweb fancyweb commented May 7, 2020

The ConsoleHandler is an event subscriber and therefore gets the container.no_preload tag automatically. However, we want to preload this class because it is in the hot path. So we have to add the container.preload tag to it (see symfony/symfony#36742).

Instead of just adding the tag for this handler, it's better to add it for all (automatically) because all handlers are always pushed to a logger.

@nicolas-grekas
Copy link
Member

However, we want to preload this class because it is in the hot path

this sentence made me realize this might be a better option to fix the issue:
symfony/symfony#36749

If you agree, this means we could save us from merging this PR in here.

@fancyweb fancyweb closed this May 9, 2020
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.

2 participants
0