Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
olevitt committed Dec 12, 2024
1 parent 5c84c59 commit a930229
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ public class LogUserInfoFilter extends OncePerRequestFilter {
protected void doFilterInternal(
HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
MDC.put(
"username",
userProvider.getUser(regionsConfiguration.getDefaultRegion()).getIdep());
try {
MDC.put(
"username",
userProvider.getUser(regionsConfiguration.getDefaultRegion()).getIdep());
} catch (Exception ignored) {

}
filterChain.doFilter(request, response);
MDC.clear();
}
Expand Down

0 comments on commit a930229

Please sign in to comment.