From b501c24e3474e8e9c793cc1bd5a3c316109a7aa7 Mon Sep 17 00:00:00 2001 From: srosse <stephane.rosse@frentix.com> Date: Mon, 4 Jan 2021 09:06:49 +0100 Subject: [PATCH] no-jira: reduce level of user sync to WARN by LDAP --- .../java/org/olat/ldap/manager/LDAPLoginManagerImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/olat/ldap/manager/LDAPLoginManagerImpl.java b/src/main/java/org/olat/ldap/manager/LDAPLoginManagerImpl.java index 4deb563da85..1143677427d 100644 --- a/src/main/java/org/olat/ldap/manager/LDAPLoginManagerImpl.java +++ b/src/main/java/org/olat/ldap/manager/LDAPLoginManagerImpl.java @@ -592,11 +592,11 @@ public class LDAPLoginManagerImpl implements LDAPLoginManager, AuthenticationPro String email = getAttributeValue(userAttributes.get(syncConfiguration.getOlatPropertyToLdapAttribute(UserConstants.EMAIL))); // Lookup user if (securityManager.findIdentityByLogin(uid) != null) { - log.error("Can't create user with username='{}', this username does already exist in the database", uid); + log.warn("Can't create user with username='{}', this username does already exist in the database", uid); return null; } if(!securityModule.isIdentityNameAutoGenerated() && securityManager.findIdentityByName(uid) != null) { - log.error("Can't create user with username='{}', this identity name does already exist in the database", uid); + log.warn("Can't create user with username='{}', this identity name does already exist in the database", uid); return null; } if(StringHelper.containsNonWhitespace(email) || userModule.isEmailMandatory()) { @@ -606,7 +606,7 @@ public class LDAPLoginManagerImpl implements LDAPLoginManager, AuthenticationPro return null; } if (!userManager.isEmailAllowed(email)) { - log.error("Can't create user {} with email='{}', a user with that email does already exist in the database", uid, email); + log.warn("Can't create user {} with email='{}', a user with that email does already exist in the database", uid, email); return null; } } -- GitLab