Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 4f3e52e

Browse files
authored
Merge pull request #33 from modulusphp/feature/error-reporting-update
Feature/error reporting update
2 parents 10aacdf + b4e8c30 commit 4f3e52e

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Events/ApplicationErrors.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Modulus\Http\Rest;
66
use Modulus\Utility\View;
77
use Modulus\Utility\Event;
8+
use AtlantisPHP\Telemonlog\Output;
89

910
class ApplicationErrors extends Event
1011
{
@@ -16,6 +17,8 @@ class ApplicationErrors extends Event
1617
*/
1718
protected function handle($exception)
1819
{
20+
Output::error($exception);
21+
1922
if ($this->isAjax()) {
2023
$this->toJson($exception);
2124
return;

Upstart/ErrorReport.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ private function errorHandling(?bool $isConsole = false)
6262
);
6363

6464
if (Misc::isAjaxRequest()) {
65-
$whoopsRun->pushHandler(new JsonResponseHandler);
6665
$errors->ajax = true;
6766
}
6867

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "modulusphp/framework",
33
"description": "Framework component for modulusPHP",
4-
"version": "1.9.8.3",
4+
"version": "1.9.8.4",
55
"license": "MIT",
66
"type": "package",
77
"authors": [{

0 commit comments

Comments
 (0)