Skip to content

Commit

Permalink
Polish contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Sep 16, 2023
1 parent 3932f91 commit 56688ab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1018,11 +1018,14 @@ else if (isEnableLoggingRequestDetails()) {

if (traceOn) {
List<String> values = Collections.list(request.getHeaderNames());
String headers = values.isEmpty() ? "" : "masked";
String headers;
if (isEnableLoggingRequestDetails()) {
headers = values.stream().map(name -> name + ":" + Collections.list(request.getHeaders(name)))
.collect(Collectors.joining(", "));
}
else {
headers = (!values.isEmpty() ? "masked" : "");
}
return message + ", headers={" + headers + "} in DispatcherServlet '" + getServletName() + "'";
}
else {
Expand Down

0 comments on commit 56688ab

Please sign in to comment.