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][LoggerDataCollector] Prevent keys collisions in the sanitized logs processing#36239

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

Conversation

@fancyweb
Copy link
Contributor

@fancywebfancyweb commentedMar 27, 2020
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets#36159
LicenseMIT
Doc PR-

$sanitizedLogs is used with numeric and "associative" keys. To prevent collisions when the message is a number, we can simply prepend all messages with a random letter (so we avoid a behavior refactor). It doesn't matter since they key is only used for the processing, it is dropped at the end.

[
['message' =>'foo3','context' => ['exception' =>new \ErrorException('warning',0,E_USER_WARNING)],'priority' =>100,'priorityName' =>'DEBUG'],
['message' =>'foo3','context' => ['exception' =>newSilencedErrorContext(E_USER_WARNING,__FILE__,__LINE__)],'priority' =>100,'priorityName' =>'DEBUG'],
['message' =>'0','context' => ['exception' =>newSilencedErrorContext(E_USER_WARNING,__FILE__,__LINE__)],'priority' =>100,'priorityName' =>'DEBUG'],
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Without the patch, this test leads to an\ErrorException.

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneMar 28, 2020
@nicolas-grekas
Copy link
Member

Thank you@fancyweb.

@nicolas-grekasnicolas-grekas merged commit0b27194 intosymfony:3.4Mar 31, 2020
@fancywebfancyweb deleted the http-kernel-logger-data-collector-error-count branchApril 1, 2020 05:38
This was referencedApr 28, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@fancyweb@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp