]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Tue, 31 Jan 2023 14:03:43 +0000 (15:03 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 31 Jan 2023 14:05:58 +0000 (15:05 +0100)
- some debug lines added

src/java/org/mxchange/jcountry/model/data/PizzaAdminCountrySingletonBean.java

index 9f3008034fcd1ca906d8a164c4452ab515d70065..aeb788793cf4aa16ab9de409570e56be770d7d25 100644 (file)
@@ -102,11 +102,17 @@ public class PizzaAdminCountrySingletonBean extends BasePizzaEnterpriseBean impl
         * @return Whether the country was found
         */
        private boolean isCountryAdded (final Country country) {
+               // Trace message
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.isCountryAdded: country={1} - CALLED!", this.getClass().getSimpleName(), country)); //NOI18N
+
                // Default is not found
                boolean isAdded = false;
 
                // Try to match code/i18n key (should be both unique!)
                for (final Country currentCountry : this.countryBean.fetchAllCountries()) {
+                       // Debug message
+                       this.getLoggerBeanLocal().logDebug(MessageFormat.format("{0}.isCountryAdded: country={1},currentCountry={2}", this.getClass().getSimpleName(), country, currentCountry)); //NOI18N
+
                        // Is it matching
                        if (Objects.equals(country, currentCountry)) {
                                // Yes, then set flag and abort loop
@@ -115,6 +121,9 @@ public class PizzaAdminCountrySingletonBean extends BasePizzaEnterpriseBean impl
                        }
                }
 
+               // Trace message
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.isCountryAdded: isAdded={1} - CALLED!", this.getClass().getSimpleName(), isAdded)); //NOI18N
+
                // Return result
                return isAdded;
        }