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

Cron log errors are not sent to Sentry #134

Open
marco-pm opened this issue Mar 29, 2024 · 0 comments
Open

Cron log errors are not sent to Sentry #134

marco-pm opened this issue Mar 29, 2024 · 0 comments

Comments

@marco-pm
Copy link

I noticed that log entries saved by Magento's ProcessCronQueueObserver class (responsible for executing cron jobs) are not intercepted by the monolog plugin, so I added these lines to a di.xml and it works now:

<type name="Magento\Cron\Observer\ProcessCronQueueObserver">
    <arguments>
        <argument name="logger" xsi:type="object">JustBetter\Sentry\Plugin\MonologPlugin</argument>
    </arguments>
</type>

Maybe it's worth considering to include it in the module code?

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

1 participant