Added Sentry error logging on the server side.

This commit is contained in:
flash 2023-09-10 20:46:58 +00:00
parent cbd84b8345
commit 28c97ef8ba
4 changed files with 1467 additions and 8 deletions
public

View file

@ -10,6 +10,8 @@ use Sasae\SasaeEnvironment;
require_once __DIR__ . '/../misuzu.php';
set_exception_handler(function(\Throwable $ex) {
\Sentry\captureException($ex);
http_response_code(500);
ob_clean();