mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
Log auth exception to debug iOS logout issue
This commit is contained in:
parent
6276c665a9
commit
125daebcbc
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user