[improvement](log) log desensitization without displaying user info (#26912)
This commit is contained in:
committed by
GitHub
parent
e7a8022106
commit
df6e444e75
@ -356,7 +356,8 @@ public class LoadAction extends RestBaseController {
|
||||
if (!Strings.isNullOrEmpty(request.getQueryString())) {
|
||||
redirectUrl += request.getQueryString();
|
||||
}
|
||||
LOG.info("Redirect url: {}", redirectUrl);
|
||||
LOG.info("Redirect url: {}", "http://" + redirectAddr.getHostname() + ":"
|
||||
+ redirectAddr.getPort() + urlObj.getPath());
|
||||
RedirectView redirectView = new RedirectView(redirectUrl);
|
||||
redirectView.setContentType("text/html;charset=utf-8");
|
||||
redirectView.setStatusCode(org.springframework.http.HttpStatus.TEMPORARY_REDIRECT);
|
||||
|
||||
@ -105,7 +105,8 @@ public class RestBaseController extends BaseController {
|
||||
if (!Strings.isNullOrEmpty(request.getQueryString())) {
|
||||
redirectUrl += request.getQueryString();
|
||||
}
|
||||
LOG.info("redirect url: {}", redirectUrl);
|
||||
LOG.info("Redirect url: {}", "http://" + addr.getHostname() + ":"
|
||||
+ addr.getPort() + urlObj.getPath());
|
||||
RedirectView redirectView = new RedirectView(redirectUrl);
|
||||
redirectView.setContentType("text/html;charset=utf-8");
|
||||
redirectView.setStatusCode(org.springframework.http.HttpStatus.TEMPORARY_REDIRECT);
|
||||
|
||||
Reference in New Issue
Block a user