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][HttpKernel] Allow configuring the logging channel per type of exceptions#57309

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

Conversation

Arkalo2
Copy link
Contributor

@Arkalo2Arkalo2 commentedJun 4, 2024
edited by nicolas-grekas
Loading

QA
Branch?7.3
Bug fix?no
New feature?yes
Deprecations?no
LicenseMIT

Status code can be customize depending on thrown Exception. It could be interesting to also customize the channel used.
Example:

# config/packages/framework.yamlframework:exceptions:Symfony\Component\HttpKernel\Exception\BadRequestHttpException:log_level:debugstatus_code:422Symfony\Component\Security\Core\Exception\AuthenticationException:log_channel:securityGotenberg\Exceptions\GotenbergApiErroed:log_channel:pdf

https://symfony.com/blog/new-in-symfony-5-4-configurable-exceptions#comment-24758

@carsonbot

This comment has been minimized.

@Arkalo2Arkalo2force-pushed thefeat/add-exception.x.log_channel branch 2 times, most recently fromd044ce8 to90b01f2CompareJune 4, 2024 12:13
@carsonbotcarsonbot changed the titleFeat/add exception.x.log channel[FrameworkBundle][HttpKernel] Feat/add exception.x.log channelJun 8, 2024
@derrabusderrabus changed the title[FrameworkBundle][HttpKernel] Feat/add exception.x.log channel[FrameworkBundle][HttpKernel] Add exception.x.log channelJun 8, 2024
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

LGTM, here are a few comments.

@Arkalo2Arkalo2force-pushed thefeat/add-exception.x.log_channel branch from90b01f2 toda2bfebCompareJune 25, 2024 12:56
@nicolas-grekasnicolas-grekas changed the title[FrameworkBundle][HttpKernel] Add exception.x.log channel[FrameworkBundle][HttpKernel] Allow configuring the logging channel per type of exceptionsJun 25, 2024
@Arkalo2Arkalo2force-pushed thefeat/add-exception.x.log_channel branch 2 times, most recently from4d18193 tocc68a33CompareJune 27, 2024 13:12
@fabpotfabpot modified the milestones:7.2,7.3Nov 20, 2024
@Arkalo2Arkalo2force-pushed thefeat/add-exception.x.log_channel branch from2f90e0b tobf0534dCompareMarch 16, 2025 08:15
@Arkalo2Arkalo2force-pushed thefeat/add-exception.x.log_channel branch frombafaf13 toe365651CompareMarch 21, 2025 18:12
@Arkalo2Arkalo2force-pushed thefeat/add-exception.x.log_channel branch 5 times, most recently from81eaca5 to86b8a01CompareMarch 24, 2025 10:23
@nicolas-grekasnicolas-grekasforce-pushed thefeat/add-exception.x.log_channel branch from86b8a01 to742a863CompareMarch 24, 2025 10:45
@nicolas-grekas
Copy link
Member

Thank you@Arkalo2.

@nicolas-grekasnicolas-grekas merged commit4fb2615 intosymfony:7.3Mar 24, 2025
3 of 9 checks passed
@fabpotfabpot mentioned this pull requestMay 2, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@andrew-dembandrew-dembandrew-demb left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@mtarldmtarldmtarld approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

7 participants
@Arkalo2@carsonbot@nicolas-grekas@mtarld@andrew-demb@fabpot@derrabus

[8]ページ先頭

©2009-2025 Movatter.jp