Skip to content

Commit 84c6284

Browse files
committed
fix: add error logging to exception handler for debugging
1 parent 4065d6d commit 84c6284

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/runnect/server/common/advice/ControllerExceptionAdvice.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ protected ApiResponseDto handleMissingRequestParameterException(final MissingSer
7373
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
7474
@ExceptionHandler(Exception.class)
7575
protected ApiResponseDto<Object> handleException(final Exception error, final HttpServletRequest request) {
76+
log.error("[500 ERROR] {} {}", request.getMethod(), request.getRequestURI(), error);
7677
try {
7778
slackApi.sendAlert(error, request);
7879
} catch (Exception e) {

0 commit comments

Comments
 (0)