Error stacktrace is not printed in console for the custom exception that is annotated with @ResponseStatus
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class InternalErrorException extends RuntimeException {
  public InternalErrorException(String message) {
    super(message);
  }
  public InternalErrorException(String message, Throwable throwable) {
    super(message, throwable);
  }
}
Throwing exception like throw new InternalErrorException("error", e), never get the stacktrace printed in the console unlesss I remove the annotation @ResponseStatus
How could I get it printed while keeping the annotation @ResponseStatus?
 
     
    