Skip to content

Commit 96fb0d0

Browse files
committed
fix: not logging message
1 parent 84e1a8b commit 96fb0d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/br/com/grupo63/techchallenge/common/api/controller/AbstractAPIController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ public abstract class AbstractAPIController {
2323

2424
@ExceptionHandler
2525
public ResponseEntity<DefaultResponseDTO> handleException(Exception exception) {
26+
27+
System.err.println("AbstractAPIController is handling expection:" + exception.getMessage());
2628
exception.printStackTrace();
29+
2730
DefaultResponseDTO responseDTO = new DefaultResponseDTO(
2831
messageSource.getMessage("default.title.unknownError", null, LocaleContextHolder.getLocale()),
2932
messageSource.getMessage("default.title.unknownError.description", null, LocaleContextHolder.getLocale()));

0 commit comments

Comments
 (0)