Commit 5acbe154 authored by michael.simon's avatar michael.simon
Browse files

put userId in MDC for any user update

Helps with AttributeQueries and ECP Logins
parent a28ef4f3
......@@ -21,6 +21,7 @@ import org.opensaml.saml.saml2.metadata.EntityDescriptor;
import org.opensaml.soap.common.SOAPException;
import org.opensaml.xmlsec.encryption.support.DecryptionException;
import org.slf4j.Logger;
import org.slf4j.MDC;
import edu.kit.scc.webreg.audit.Auditor;
import edu.kit.scc.webreg.audit.IdpCommunicationAuditor;
......@@ -134,6 +135,7 @@ public class UserUpdater implements Serializable {
public SamlUserEntity updateUser(SamlUserEntity user, Map<String, List<Object>> attributeMap, String executor,
ServiceEntity service)
throws UserUpdateException {
MDC.put("userId", "" + user.getId());
logger.debug("Updating user {}", user.getEppn());
user = userDao.merge(user);
......
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