Log auth exception to debug iOS logout issue

This commit is contained in:
Bubka 2022-10-18 18:50:56 +02:00
parent 6276c665a9
commit 125daebcbc

View File

@ -3,6 +3,7 @@
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Support\Facades\Log;
class Handler extends ExceptionHandler
{
@ -91,6 +92,8 @@ public function register()
'message' => $exception->getMessage()], 407);
}
else {
Log::debug($request->fullUrl());
Log::debug($exception->getTraceAsString());
return response()->json([
'message' => $exception->getMessage()], 401);
}