log erros into file

This commit is contained in:
Bence Pőcze 2023-09-26 23:04:24 +02:00
parent ebe1fa2aa6
commit 28600a0647
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -94,6 +94,7 @@ class HttpResponse
$response = call_user_func([$controller, $handler[1]]); $response = call_user_func([$controller, $handler[1]]);
} catch (Exception $exception) { } catch (Exception $exception) {
$this->dbConnection->rollback(); $this->dbConnection->rollback();
error_log($exception);
$this->render500($exception); $this->render500($exception);
return; return;
} }