Filter errors
-
Hello,
I’d like to ignore all the errors on the site and keep only the errors in my theme and plugin. So I tried your code: https://github.com/stayallive/wp-sentry/tree/v7.3.1?tab=readme-ov-file#capturing-errors-only-from-certain-theme-andor-plugin
Which didn’t really work as I’d hoped.So I tried to check whether the filter worked like this:
add_filter( 'wp_sentry_options', function ( \Sentry\Options $options ) { $options->setBeforeSendCallback( function ( \Sentry\Event $event ) { error_log( "DEBUG SENTRY : HOOK" ); return null; } ); return $options; } );
If I’m not too stupid, it shouldn’t log any errors in Sentry. However, most of them are ignored, but not all: https://prnt.sc/IsOC-DmjsSyM
How do you explain this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Filter errors’ is closed to new replies.