title: HTTP 400 error not getting logged in spring boot although 404 and others do
body: <p>In application.properties</p>
  
  <pre><code>logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG,stdout
  log4j.logger.httpclient.wire=DEBUG,stdout
  management.endpoints.web.exposure.include=*
  management.endpoint.beans.cache.time-to-live=10s
  server.tomcat.accesslog.enabled = true
  log4j.logger.org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod=DEBUG,stdout
  logging.level.org.springframework.web=DEBUG,stdout
  </code></pre>
  
  <p>Here, </p>
  
  <pre><code>CommonsRequestLoggingFilter
  </code></pre>
  
  <p>logs other requests but not 400. why is that? how can I handle this universally? I am fairly New to spring boot and have not been able to implement <code>restcontrolleradvice</code> yet</p>
  
  <p>Controller:</p>
  
  <pre><code>@CrossOrigin("*")
  @RestController
  public class DataController {
  
  @RequestMapping(value = "/abc/track/{type}", method = RequestMethod.GET)
  
      public void DummFunc(                            
            @RequestParam(value="subs", required = false) String sub,
  ,  HttpServletResponse response) {}
  // @ResponseStatus(HttpStatus.BAD_REQUEST)
  
  
  @ExceptionHandler(Throwable.class)
      public void handle(HttpMessageNotReadableException e) {
          System.out.println("EXCEPTION HAPPENED");
          System.out.println(e);
      }
  
  
  }
  </code></pre>