Skip to content

Commit

Permalink
Make ErrorPageFilter.getDescription protected
Browse files Browse the repository at this point in the history
Make `ErrorPageFilter#getDescription` `protected` instead of `private`
to be able to customize the details for the request logged in case of
an error.

Fixes spring-projectsgh-7380
Closes spring-projectsgh-7393
  • Loading branch information
Stéphane Daviet authored and philwebb committed Nov 16, 2016
1 parent c61a514 commit e22fe54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private void forwardToErrorPage(String path, HttpServletRequest request,
request.getRequestDispatcher(path).forward(request, response);
}

private String getDescription(HttpServletRequest request) {
protected String getDescription(HttpServletRequest request) {
return "[" + request.getServletPath()
+ (request.getPathInfo() == null ? "" : request.getPathInfo()) + "]";
}
Expand Down

0 comments on commit e22fe54

Please sign in to comment.