Skip to content

Commit

Permalink
log messages improved
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Mar 23, 2012
1 parent 7b4eba6 commit 56f2ad9
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -49,6 +49,7 @@ protected InputStream getContentXML(String viewId) {
boolean emailUpdated = false;
if (email != null) {
emailUpdated = updateProfile(email);
log.info("Email '" + email + "' has been updated: " + emailUpdated);
}

try {
Expand Down Expand Up @@ -197,9 +198,11 @@ private void updatePassword(String oldPassword) {
protected boolean updateProfile(String email) {
if (email == null || ("").equals(email)) {
setTransformerParameter("error", "emailNotSet");
log.warn("No email (or empty email) specified, hence do not update email address!");
return false;
} else if (!validateEmail(email)) {
setTransformerParameter("error", "emailNotValid");
log.warn("Email '" + email + "' is not valid!");
return false;
} else {
try {
Expand Down

0 comments on commit 56f2ad9

Please sign in to comment.