Commit 213e3129 authored by michael.simon's avatar michael.simon
Browse files

Also add userId if logged in to MDC logging context.

Should make debugging and answering of user requests easier.
parent dd8e3a13
......@@ -125,6 +125,8 @@ public class SecurityFilter implements Filter {
else if (session != null && session.isLoggedIn()) {
MDC.put("userId", "" + session.getUserId());
Set<RoleEntity> roles = new HashSet<RoleEntity>(roleService.findByUserId(session.getUserId()));
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