You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run console command which triggers deprecation e.g.:
bin/console cache:clear
Output is normally:
Install sentry / sentry bundle run again:
bin/console cache:clear
It looks for me there is some conflicts between symfony error handler (think it handles also deprecations) and the sentry error handler.
In our case we already had disabled the error_listener but it does not have any effects depending on sentry symfony monolog integration:
config/packages/sentry.yaml
sentry:
dsn: "%env(SENTRY_DSN)%"register_error_listener: false # Disable ErrorListener to avoid duplicated events because of monolog handleroptions:
attach_stacktrace: true # Attach stacktrace to monolog events that do not include an exceptionsend_default_pii: true # Include personally identifiable information like user, cookies and headersintegrations:
- 'Sentry\Integration\IgnoreErrorsIntegration'# monolog configuration for sentry# see also: https://docs.sentry.io/platforms/php/guides/symfony/monolog:
handlers:
sentry:
type: sentrylevel: !php/const Monolog\Logger::ERRORhub_id: Sentry\State\HubInterfaceservices:
Monolog\Processor\PsrLogMessageProcessor:
tags: { name: monolog.processor, handler: sentry }Sentry\Integration\IgnoreErrorsIntegration:
arguments:
$options:
ignore_exceptions:
- 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException'
This issue is maybe related to: #337 and maybe a register_error_handler: false suggested by @Jean85 could fix this issue. But I'm not sure 100% sure it seems to appear only since symfony 5.4/6.0 release and the other issue seems to be older.
Expected Result
Do not output the deprecation notices.
Actual Result
Outputs the deprecation notices.
The text was updated successfully, but these errors were encountered:
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Environment
How do you use Sentry?
self-hosted/on-premise
Steps to Reproduce
Have a symfony project with deprecations:
Run console command which triggers deprecation e.g.:
Output is normally:
Install sentry / sentry bundle run again:
It looks for me there is some conflicts between symfony error handler (think it handles also deprecations) and the sentry error handler.
In our case we already had disabled the
error_listener
but it does not have any effects depending on sentry symfony monolog integration:config/packages/sentry.yaml
This issue is maybe related to: #337 and maybe a
register_error_handler: false
suggested by @Jean85 could fix this issue. But I'm not sure 100% sure it seems to appear only since symfony 5.4/6.0 release and the other issue seems to be older.Expected Result
Do not output the deprecation notices.
Actual Result
Outputs the deprecation notices.
The text was updated successfully, but these errors were encountered: