FatalErrors
This commit is contained in:
@ -13,3 +13,10 @@ try {
|
||||
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->notice($exception);
|
||||
header('Location: /construccion');
|
||||
}
|
||||
register_shutdown_function(function() {
|
||||
$error = error_get_last();
|
||||
|
||||
if ($error !== null) {
|
||||
error_log(json_encode($error).PHP_EOL,3, '/logs/fatal.log');
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user