getsentry / sentry-symfony

The official Symfony SDK for Sentry (sentry.io)
https://sentry.io
MIT License
690 stars 171 forks source link

Add HandlerMessageBody to SentryException #861

Open y4roc opened 2 months ago

y4roc commented 2 months ago

This PR should resolve #703.

y4roc commented 2 months ago

getMessage() will always return an object. So normally, no exception will be thrown. I would add an option to deactivate the messageBody, because sometimes it will include secret dates.

In future it would be great to have a service, wich can hide some properties.

4rthem commented 1 day ago

Hi, this PR had a better approach.