Skip to content

Commit

Permalink
add uncaught error log
Browse files Browse the repository at this point in the history
  • Loading branch information
yutomoriyasu committed Mar 13, 2023
1 parent 6d9173e commit 3577e8d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Laravel/Controllers/CallbackApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function index(Request $request)
Log::info('Type: ' . $type . ', Message: ' . $message);
return response()->json(['type' => $type, 'message' => $message], Response::HTTP_INTERNAL_SERVER_ERROR);
}
Log::info('Uncaught error: ' . $e);
return response()->json('Uncaught error', Response::HTTP_INTERNAL_SERVER_ERROR);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Laravel/Controllers/CallbackController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function index(Request $request)
Log::info('Type: ' . $type . ', Message: ' . $message);
return redirect(getenv('SAASUS_LOGIN_URL'));
}
Log::info('Uncaught error: ' . $e);
return redirect(getenv('SAASUS_LOGIN_URL'));
}
$arr_cookie_options = array(
Expand Down
1 change: 1 addition & 0 deletions src/Laravel/Controllers/TokenRefreshApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function index(Request $request)
Log::info('Type: ' . $type . ', Message: ' . $message);
return response()->json(['type' => $type, 'message' => $message], Response::HTTP_INTERNAL_SERVER_ERROR);
}
Log::info('Uncaught error: ' . $e);
return response()->json('Uncaught error', Response::HTTP_INTERNAL_SERVER_ERROR);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Laravel/Middleware/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function handle(Request $request, Closure $next)
Log::info('Type: ' . $type . ', Message: ' . $message);
return response()->json(['type' => $type, 'message' => $message], Response::HTTP_INTERNAL_SERVER_ERROR);
}
Log::info('Uncaught error: ' . $e);
return response()->json('Uncaught error', Response::HTTP_INTERNAL_SERVER_ERROR);
}

Expand Down

0 comments on commit 3577e8d

Please sign in to comment.