mirror of
https://github.com/Mibew/mibew.git
synced 2025-05-14 15:43:08 +03:00
Log error when "Internal Server Error" page is shown
This commit is contained in:
parent
9c87fadb7d
commit
bb1b6c377c
@ -153,6 +153,16 @@ class Application implements
|
|||||||
|
|
||||||
$response = new Response($content, $http_status);
|
$response = new Response($content, $http_status);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
trigger_error(
|
||||||
|
sprintf(
|
||||||
|
'Application stopped because of uncaught exception %s "%s" (%s:%u)',
|
||||||
|
get_class($e),
|
||||||
|
$e->getMessage(),
|
||||||
|
$e->getFile(),
|
||||||
|
$e->getLine()
|
||||||
|
),
|
||||||
|
E_USER_WARNING
|
||||||
|
);
|
||||||
$response = new Response('Internal Server Error', 500);
|
$response = new Response('Internal Server Error', 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user