Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle] enable ErrorHandler in prod#12081

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 3 commits intosymfony:masterfromnicolas-grekas:scream-mode
Oct 3, 2014

Conversation

@nicolas-grekas
Copy link
Member

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#11053,#8281
LicenseMIT
Doc PR-
  • a new debug.error_handler service is the registered PHP error handler, with ErrorHandler::register() as factory
  • ErrorHandler::register() is patched so that it checks if the currently registered error handler is an instance of ErrorHandler - in which case it returns this instance and don't create a new one.
  • DebugHandlersListener now listen to ConsoleEvents and re-injects fatal errors within the $app->renderException code path
  • DebugHandlersListener also has a new $scream parameter to control if silenced errors are logged or not

@nicolas-grekasnicolas-grekasforce-pushed thescream-mode branch 2 times, most recently fromaf0ecf4 toc3d012cCompareSeptember 30, 2014 12:16
@nicolas-grekas
Copy link
MemberAuthor

This PR is ready for review/vote. I updated the patch to have almost no behavioral change but only semantic added-value.
Instead of replacing an argument, I just added a new one :)

@nicolas-grekasnicolas-grekasforce-pushed thescream-mode branch 4 times, most recently fromf3943a9 to423a286CompareOctober 2, 2014 09:01
@stof
Copy link
Member

stof commentedOct 2, 2014

looks good to me. 👍

@nicolas-grekasnicolas-grekas changed the title[Debug] make screaming configurable[FrameworkBundle] enable ErrorHandler in prodOct 2, 2014
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't want to introduce more of these params.

Copy link
Member

Choose a reason for hiding this comment

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

agreed

Copy link
Contributor

Choose a reason for hiding this comment

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

what is this service for?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Now that it is private I can drop it you're right.
I may reintroduce it later to bind it to new configuration options for controlling scope_at and trace_at,
that's why I added it in the first place.
Removing for now.

@Tobion
Copy link
Contributor

That the console now correctly displays fatal errors is cool. But this will only be working when using the framework bundle. Can this not be handled within the component?

@nicolas-grekas
Copy link
MemberAuthor

Having this in the framework bundle allows configuration flexibility.
But then doesn't prevent adding fatal error handling right into the console component later in an other PR.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commitfac3cc4 intosymfony:masterOct 3, 2014
fabpot added a commit that referenced this pull requestOct 3, 2014
…-grekas)This PR was merged into the 2.6-dev branch.Discussion----------[FrameworkBundle] enable ErrorHandler in prod| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#11053,#8281| License       | MIT| Doc PR        | --  a new debug.error_handler service is the registered PHP error handler, with ErrorHandler::register() as factory- ErrorHandler::register() is patched so that it checks if the currently registered error handler is an instance of ErrorHandler - in which case it returns this instance and don't create a new one.- DebugHandlersListener now listen to ConsoleEvents and re-injects fatal errors within the $app->renderException code path- DebugHandlersListener also has a new $scream parameter to control is silenced errors are logged or notCommits-------fac3cc4 [FrameworkBundle] register ErrorHandler at boot time4acf5d3 [Debug] make screaming configurable4d0ab7d [FrameworkBundle] enable ErrorHandler in prod
@nicolas-grekasnicolas-grekas deleted the scream-mode branchOctober 3, 2014 14:08
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@nicolas-grekas@stof@Tobion@fabpot@kingcrunch@lunetics

[8]ページ先頭

©2009-2025 Movatter.jp