Changed logger levels and fixed typos
This commit is contained in:
parent
93d7da8c74
commit
b7060749ea
|
@ -151,7 +151,7 @@ public class UsernameFromMailMapper extends AbstractClaimMapper {
|
||||||
|
|
||||||
for (Character c : username.chars().mapToObj(e -> (char) e).collect(Collectors.toSet())) {
|
for (Character c : username.chars().mapToObj(e -> (char) e).collect(Collectors.toSet())) {
|
||||||
if (!isChar(c) && !isDigit(c) && (c != DASH) && (c != PERIOD)) {
|
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);
|
username = username.replace(c, PERIOD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ public class UsernameFromMailMapper extends AbstractClaimMapper {
|
||||||
|| reservedUsernames.contains(username)) {
|
|| reservedUsernames.contains(username)) {
|
||||||
|
|
||||||
if (usernameAlreadyExists) {
|
if (usernameAlreadyExists) {
|
||||||
logger.infof("Username already exists: %s", username);
|
logger.debugf("Username already exists: %s", username);
|
||||||
} else {
|
} else {
|
||||||
logger.info("Username is one of the reserved usernames");
|
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);
|
context.setModelUsername(username);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue