Changed logger levels and fixed typos

This commit is contained in:
Mauro Mugnaini 2021-05-20 18:27:05 +02:00
parent 93d7da8c74
commit b7060749ea
1 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ public class UsernameFromMailMapper extends AbstractClaimMapper {
for (Character c : username.chars().mapToObj(e -> (char) e).collect(Collectors.toSet())) {
if (!isChar(c) && !isDigit(c) && (c != DASH) && (c != PERIOD)) {
logger.infof("Replacing unneded char (%c) with %c", c, PERIOD);
logger.debugf("Replacing unneeded char (%c) with %c", c, PERIOD);
username = username.replace(c, PERIOD);
}
}
@ -161,7 +161,7 @@ public class UsernameFromMailMapper extends AbstractClaimMapper {
|| reservedUsernames.contains(username)) {
if (usernameAlreadyExists) {
logger.infof("Username already exists: %s", username);
logger.debugf("Username already exists: %s", username);
} else {
logger.info("Username is one of the reserved usernames");
}
@ -178,7 +178,7 @@ public class UsernameFromMailMapper extends AbstractClaimMapper {
}
}
}
logger.infof("Final computed username is: %s", username);
logger.debugf("Final computed username is: %s", username);
context.setModelUsername(username);
}