Skip to content

[Uid] Add InvalidUidException Context #60557

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

Open
wants to merge 2 commits into
base: 7.4
Choose a base branch
from

Conversation

rela589n
Copy link
Contributor

Q A
Branch? 7.4
Bug fix? no
New feature? yes (minor)
Deprecations? no
Issues #60328
License MIT

Considering the main purpose of the exceptions - to be logged, it is best to have their context normalized, so that it can be easily processed by special tools (like Graylog, Logstash, etc).

This PR adds context to InvalidUidException so that its value will appear in logs, and also it adds PSR3-interpolation placeholders for uid value where such were absent.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👎 sorry
We already discussed something very similar.
Exception messages shouldn't be optimized for logs.

@rela589n
Copy link
Contributor Author

Sorry

I'm just asking to reconsider it

Actually I thought that it was your point that exception messages are primary for logs, and that's why value is concatenated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy