Commit 00452877 authored by Stéphane Daviet's avatar Stéphane Daviet Committed by Phillip Webb

Make ErrorPageFilter.getDescription protected

Make `ErrorPageFilter#getDescription` `protected` instead of `private`
to be able to customize the details for the request logged in case of
an error.

Fixes gh-7380
Closes gh-7393
parent 7daf69a3
...@@ -185,7 +185,7 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry { ...@@ -185,7 +185,7 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry {
request.getRequestDispatcher(path).forward(request, response); request.getRequestDispatcher(path).forward(request, response);
} }
private String getDescription(HttpServletRequest request) { protected String getDescription(HttpServletRequest request) {
return "[" + request.getServletPath() return "[" + request.getServletPath()
+ (request.getPathInfo() == null ? "" : request.getPathInfo()) + "]"; + (request.getPathInfo() == null ? "" : request.getPathInfo()) + "]";
} }
......
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