Skip to content
Extraits de code Groupes Projets
Valider 8e8ae1f9 rédigé par okhin's avatar okhin :bicyclist:
Parcourir les fichiers

Merge branch '30-ajout-de-sentry' into 'preprod'

Resolve "Ajout de sentry"

Closes #30

See merge request lqdn-interne/don!1
parents 141882db f2dc0478
Branches
Étiquettes
2 requêtes de fusion!37Mise en production,!1Resolve "Ajout de sentry"
......@@ -31,6 +31,10 @@ doctor: ## Check that everything is installed to use this application
@which msgfmt >/dev/null 2>&1 && echo "\033[32mmsgfmt installed\033[0m" || echo "\033[31mmsgfmt not installed\033[0m"
@which xgettext >/dev/null 2>&1 && echo "\033[32mxgettext installed\033[0m" || echo "\033[31mxgettext not installed\033[0m"
@which pdftk >/dev/null 2>&1 && echo "\033[32mpdftk installed\033[0m" || echo "\033[31mpdftk not installed\033[0m"
@test -s /usr/share/php7.0-xml/xml/dom.ini && echo "\033[032mphp-ext-dom installed\033[0m" || echo "\033[31mphp-ext-dom not installed (php-xml)\033[0m"
@test -s /usr/share/php7.0-zip/zip/zip.ini && echo "\033[032mphp-zip installed\033[0m" || echo "\033[31mphp-zip not installed\033[0m"
@test -s /usr/share/php7.0-mbstring/mbstring/mbstring.ini && echo "\033[032mphp-mbstring installed\033[0m" || echo "\033[31mphp-mbstring not installed\033[0m"
@test -s /usr/share/php7.0-curl/curl/curl.ini && echo "\033[032mphp-curl installed\033[0m" || echo "\033[31mphp-curl not installed\033[0m"
install: ## Install the application
@echo "\033[1m\033[36m==> Install Composer dependencies\033[0m\033[21m"
......
......@@ -46,6 +46,13 @@ define("SMTP_PW", getenv('SMTP_PW'));
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);
......
......@@ -7,7 +7,8 @@
"vlucas/phpdotenv": "^2.4",
"pimple/pimple": "^3.0",
"doctrine/dbal": "^2.5",
"symfony/http-foundation": "^3.2"
"symfony/http-foundation": "^3.2",
"sentry/sentry": "^1.9"
},
"require-dev": {
"codeception/codeception": "^2.2",
......
Ce diff est replié.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter