@@ -218,7 +218,6 @@ protected ModelAndView handleNoSuchRequestHandlingMethod(org.springframework.web
218
218
protected ModelAndView handleHttpRequestMethodNotSupported (HttpRequestMethodNotSupportedException ex ,
219
219
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
220
220
221
- pageNotFoundLogger .warn (ex .getMessage ());
222
221
String [] supportedMethods = ex .getSupportedMethods ();
223
222
if (supportedMethods != null ) {
224
223
response .setHeader ("Allow" , StringUtils .arrayToDelimitedString (supportedMethods , ", " ));
@@ -342,9 +341,6 @@ protected ModelAndView handleServletRequestBindingException(ServletRequestBindin
342
341
protected ModelAndView handleConversionNotSupported (ConversionNotSupportedException ex ,
343
342
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
344
343
345
- if (logger .isWarnEnabled ()) {
346
- logger .warn ("Failed to convert request element: " + ex );
347
- }
348
344
sendServerError (ex , request , response );
349
345
return new ModelAndView ();
350
346
}
@@ -363,9 +359,6 @@ protected ModelAndView handleConversionNotSupported(ConversionNotSupportedExcept
363
359
protected ModelAndView handleTypeMismatch (TypeMismatchException ex ,
364
360
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
365
361
366
- if (logger .isWarnEnabled ()) {
367
- logger .warn ("Failed to bind request element: " + ex );
368
- }
369
362
response .sendError (HttpServletResponse .SC_BAD_REQUEST );
370
363
return new ModelAndView ();
371
364
}
@@ -386,9 +379,6 @@ protected ModelAndView handleTypeMismatch(TypeMismatchException ex,
386
379
protected ModelAndView handleHttpMessageNotReadable (HttpMessageNotReadableException ex ,
387
380
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
388
381
389
- if (logger .isWarnEnabled ()) {
390
- logger .warn ("Failed to read HTTP message: " + ex );
391
- }
392
382
response .sendError (HttpServletResponse .SC_BAD_REQUEST );
393
383
return new ModelAndView ();
394
384
}
@@ -410,9 +400,6 @@ protected ModelAndView handleHttpMessageNotReadable(HttpMessageNotReadableExcept
410
400
protected ModelAndView handleHttpMessageNotWritable (HttpMessageNotWritableException ex ,
411
401
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
412
402
413
- if (logger .isWarnEnabled ()) {
414
- logger .warn ("Failed to write HTTP message: " + ex );
415
- }
416
403
sendServerError (ex , request , response );
417
404
return new ModelAndView ();
418
405
}
@@ -508,8 +495,8 @@ protected ModelAndView handleAsyncRequestTimeoutException(AsyncRequestTimeoutExc
508
495
if (!response .isCommitted ()) {
509
496
response .sendError (HttpServletResponse .SC_SERVICE_UNAVAILABLE );
510
497
}
511
- else if ( logger . isDebugEnabled ()) {
512
- logger .debug ("Async timeout for " + request . getMethod () + " [" + request . getRequestURI () + "] " );
498
+ else {
499
+ logger .warn ("Async request timed out " );
513
500
}
514
501
return new ModelAndView ();
515
502
}
0 commit comments