]> git.mxchange.org Git - addressbook-lib.git/commitdiff
added debug logging
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 14:52:44 +0000 (16:52 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 14:56:27 +0000 (16:56 +0200)
src/org/mxchange/addressbook/validator/user/UserIdValidator.java

index a449dee7ac1e9e66716f486faa7a0de5958048e8..a1b20666a544c875037f22cf8e81a920c0d5d753 100644 (file)
@@ -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