]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
No need to log them if an email address change is not persisted yet (at these 2 places)
authorRoland Haeder <roland@mxchange.org>
Sun, 13 Mar 2016 17:41:25 +0000 (18:41 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 13 Mar 2016 17:41:25 +0000 (18:41 +0100)
src/java/org/mxchange/jusercore/model/email_address/JobsEmailChangeSessionBean.java

index 4b5fe414278f40768d4e446cba70e259b89d8dbd..1848a4d7e307f522e422442e3e8d9f4a9aa0d9f4 100644 (file)
@@ -146,7 +146,6 @@ public class JobsEmailChangeSessionBean extends BaseDatabaseBean implements Emai
 
                // Persist it
                //this.getEntityManager().persist(emailChange);
-
                // Get mailer instance
                DeliverableEmail mailer = new Mailer();
 
@@ -208,8 +207,8 @@ public class JobsEmailChangeSessionBean extends BaseDatabaseBean implements Emai
                        // Found it
                        isFound = true;
                } catch (final NoResultException ex) {
-                       // Log it
-                       this.getLoggerBeanLocal().logException(ex);
+                       // Ignore it for now
+                       //this.getLoggerBeanLocal().logException(ex);
                }
 
                // Trace message
@@ -286,6 +285,9 @@ public class JobsEmailChangeSessionBean extends BaseDatabaseBean implements Emai
                                // Get single result
                                ChangeableEmailAddress dummy = (ChangeableEmailAddress) query.getSingleResult();
                        } catch (final NoResultException ex) {
+                               // Ignore it for now
+                               //this.getLoggerBeanLocal().logException(ex);
+
                                // Not found
                                isUsed = false;
                        }