mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
not found exception add log
This commit is contained in:
@@ -71,7 +71,8 @@ class Handler extends ExceptionHandler
|
|||||||
$this->renderable(function (NotFoundHttpException $e) {
|
$this->renderable(function (NotFoundHttpException $e) {
|
||||||
if ($e->getPrevious() && $e->getPrevious() instanceof ModelNotFoundException) {
|
if ($e->getPrevious() && $e->getPrevious() instanceof ModelNotFoundException) {
|
||||||
$exception = $e->getPrevious();
|
$exception = $e->getPrevious();
|
||||||
return response()->json(fail($exception->getMessage(), request()->all()), 404);
|
do_log(sprintf("NotFoundHttpException: %s, trace: %s", $exception->getMessage(), $exception->getTraceAsString()), 'error');
|
||||||
|
return response()->json(fail($exception->getMessage(), request()->all()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.4');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.4');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-06-10');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-06-11');
|
||||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||||
|
|||||||
Reference in New Issue
Block a user