I try to set up Sentry in my non-framework-php project. It works like a charm but one thing is bothering me:
The code is very unstrict and notice-prone. Imagining sending for every user click sometimes 50 notices to sentry seems to be a big overhead. (And no, fixing all those things is unfortunately not in the budget!)
So my question: Is there a way to tell sentry just to send errors with level WARNING and above?
This is my code:
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
require_once 'Raven/Autoloader.php';
Raven_Autoloader::register();
$client = new Raven_Client('myurl');
$error_handler = new Raven_ErrorHandler($client);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();