Commit ebd94f0c by Johannes Edmeier

Add Handler for AsyncRequestTimeoutException

fixes #317
parent f700fbf8
......@@ -21,13 +21,17 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.EventListener;
import org.springframework.http.MediaType;
import org.springframework.util.MimeTypeUtils;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.context.request.async.AsyncRequestTimeoutException;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
import de.codecentric.boot.admin.event.ClientApplicationEvent;
......@@ -81,4 +85,9 @@ public class JournalController {
}
}
}
@ExceptionHandler(AsyncRequestTimeoutException.class)
public void asyncRequestTimeoutExceptionHandler(HttpServletRequest req) {
LOGGER.debug("Async request to '{}' timed out", req.getRequestURI());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment