From: Roland Haeder Date: Thu, 15 Oct 2015 14:52:44 +0000 (+0200) Subject: added debug logging X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6813ebd9601e63279d04490b302c35a991cf1d92;p=addressbook-lib.git added debug logging --- diff --git a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java index a449dee..a1b2066 100644 --- a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java +++ b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java @@ -62,6 +62,9 @@ public class UserIdValidator extends BaseLongValidator implements Validator { * @param event User registration event */ public void afterRegistration (final @Observes UserRegisteredEvent event) { + // Trace message + System.out.println(MessageFormat.format("UserIdValidator:afterRegistration: event={0} - CALLED!", event)); //NOI18N + // event should not be null if (null == event) { // Throw NPE @@ -80,8 +83,14 @@ public class UserIdValidator extends BaseLongValidator implements Validator { // Get user instance User registeredUser = event.getUser(); + // Debug message + System.out.println(MessageFormat.format("UserIdValidator:afterRegistration: registeredUser={0}", registeredUser)); //NOI18N + // Update cache UserIdValidator.cachedStatus.add(registeredUser.getUserId()); + + // Trace message + System.out.println("UserIdValidator:afterRegistration: EXIT!"); //NOI18N } @Override