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

[HttpKernel] Decouple exception logging from rendering#25366

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 1 commit intosymfony:masterfromro0NL:logexceptions
Dec 14, 2017
Merged

[HttpKernel] Decouple exception logging from rendering#25366

fabpot merged 1 commit intosymfony:masterfromro0NL:logexceptions
Dec 14, 2017

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedDec 6, 2017
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#25266
LicenseMIT
Doc PRsymfony/symfony-docs#...

Given your controller throws an exception and a custom exception listener sets a response.

Before
image

After
image

;-)

edit: raising the priority for the profiler listener fixes the exception panel also.

linaori and ovrflo reacted with thumbs up emojifsevestre reacted with hooray emoji
@fabpot
Copy link
Member

Thank you@ro0NL.

@fabpotfabpot merged commita203d31 intosymfony:masterDec 14, 2017
fabpot added a commit that referenced this pull requestDec 14, 2017
… (ro0NL)This PR was merged into the 4.1-dev branch.Discussion----------[HttpKernel] Decouple exception logging from rendering| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#25266| License       | MIT| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->Given your controller throws an exception and a custom exception listener sets a response.Before![image](https://user-images.githubusercontent.com/1047696/33676886-46e90e0a-dab7-11e7-9a3a-24c70b23d4e0.png)After![image](https://user-images.githubusercontent.com/1047696/33676832-1ac4f0aa-dab7-11e7-9ac4-483fcbdc06ee.png);-)edit: raising the priority for the profiler listener fixes the exception panel also.Commits-------a203d31 [HttpKernel] Decouple exception logging from rendering
@ro0NLro0NL deleted the logexceptions branchDecember 14, 2017 08:24
@sroze
Copy link
Contributor

Nice@ro0NL 👍

4.1.0
-----

*`ExceptionListener` now logs and collects exceptions at priority`2048` (previously logged at`-128` and collected at`0`)
Copy link
Member

Choose a reason for hiding this comment

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

Is it worth to add this to the upgrade file too?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

What exactly needs an upgrade step?

Copy link
Member

Choose a reason for hiding this comment

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

I was thinking about other listeners that relied on this one being executed before/after themselves. Probably an edge case though that's not needed to be tackled.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@fabpotfabpotfabpot approved these changes

@OskarStarkOskarStarkOskarStark approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

7 participants

@ro0NL@fabpot@sroze@OskarStark@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp