Skip to content
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

Monolog error after sentry added #447

Open
DZymelka opened this issue Dec 6, 2022 · 1 comment
Open

Monolog error after sentry added #447

DZymelka opened this issue Dec 6, 2022 · 1 comment

Comments

@DZymelka
Copy link

DZymelka commented Dec 6, 2022

After adding sentry to symfony project, many deprecated errors appeared.

One of them:
User Deprecated: The "Monolog\Logger" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Symfony\Bridge\Monolog\Logger".

I am using:

  • Symfony: 6.1.8
  • Monolog-bundle: 3.2
  • Sentry: 3:12

My sentry.yaml:

sentry:
    dsn: '%env(SENTRY_DSN)%'
    register_error_listener: false
    options:
        environment: "%kernel.environment%.%env(APP_DOMAIN)%"
        release: '%env(APP_RELEASE)%'

monolog:
    handlers:
        sentry:
            type: sentry
            level: !php/const Monolog\Logger::ERROR
            hub_id: Sentry\State\HubInterface
@GromNaN
Copy link
Member

GromNaN commented Dec 19, 2022

Thank you for reporting this issue. It have been discussed in symfony/symfony#47096 and we are looking for someone to contribute the solution.

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

No branches or pull requests

2 participants