Commit 098c4526 authored by Okhin's avatar Okhin

Let's move sentry to the configuration file, should better

parent 2ca10d61
Pipeline #1995 passed with stages
......@@ -48,6 +48,11 @@ define("DEBUG", getenv('DEBUG'));
define("SENTRY", getenv('SENTRY'));
$error_handler = new Raven_ErrorHandler($client);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();
if ('prod' !== $env) {
error_reporting(E_ALL|E_WARNING);
ini_set("display_errors", true);
......
......@@ -84,13 +84,6 @@ class Controller
asort($atailles);
$f3->set('atailles', $atailles);
// On attache l'exécution de Sentry ici
$sentry_client = new Raven_Client($SENTRY);
$error_handler = new Raven_ErrorHandler($senry_client);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();
// Ceci n'est valable que pour les tests en CLI
if (strlen($f3["RESPONSE"])>0) {
$f3->clear("RESPONSE");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment