Skip to content

Commit 68c8e3e

Browse files
committed
fixed
1 parent e3bf671 commit 68c8e3e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

app/Exceptions/Handler.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ public function report(Exception $exception)
4747
*/
4848
public function render($request, Exception $exception)
4949
{
50-
if (config('app.debug')) {
51-
\Log::info("请求导致异常的地址:" . $request->fullUrl() . ",请求IP:" . $request->getClientIp());
52-
53-
parent::render($request, $exception);
54-
}
50+
\Log::info("异常请求:" . $request->fullUrl() . ",IP:" . getClientIp());
5551

5652
// 捕获身份校验异常
5753
if ($exception instanceof AuthenticationException) {
@@ -71,6 +67,7 @@ public function render($request, Exception $exception)
7167
}
7268
}
7369

70+
// 捕获反射异常
7471
if ($exception instanceof ReflectionException) {
7572
if ($request->ajax()) {
7673
return response()->json(['status' => 'fail', 'data' => '', 'message' => 'System Error']);

0 commit comments

Comments
 (0)