]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
very noisy debug lines commented out
authorRoland Haeder <roland@mxchange.org>
Fri, 15 Apr 2016 18:21:38 +0000 (20:21 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 15 Apr 2016 18:21:38 +0000 (20:21 +0200)
src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java

index ae0c8bee1948ab463a29fc739cf531a9323e55f5..8f3fe3859e7ad16746b4cc5f5295050555cc6158 100644 (file)
@@ -73,15 +73,15 @@ public class PizzaCategoryConverter implements Converter {
        @Override
        public Object getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
                // Trace message
-               this.loggerBeanLocal.logTrace(MessageFormat.format("getAsObject: context={0},component={1},submittedValue={2} - CALLED!", context, component, submittedValue)); //NOI18N
+               // NOISY-DEBUG: this.loggerBeanLocal.logTrace(MessageFormat.format("getAsObject: context={0},component={1},submittedValue={2} - CALLED!", context, component, submittedValue)); //NOI18N
 
                // Get full list
                List<Category> categoryList = this.categoryBean.getAllCategories();
 
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
-                       // Trace message
-                       this.loggerBeanLocal.logTrace("getAsObject: submittedValue is null or empty - EXIT!"); //NOI18N
+                       // Warning message
+                       this.loggerBeanLocal.logWarning("getAsObject: submittedValue is null or empty - EXIT!"); //NOI18N
 
                        // Return null
                        return null;
@@ -99,7 +99,7 @@ public class PizzaCategoryConverter implements Converter {
                        assert (categoryId > 0) : "categoryId is smaller than one: " + categoryId; //NOI18N
 
                        // Debug message
-                       this.loggerBeanLocal.logDebug(MessageFormat.format("getAsObject: categoryId={0}", categoryId)); //NOI18N
+                       // NOISY-DEBUG: this.loggerBeanLocal.logDebug(MessageFormat.format("getAsObject: categoryId={0}", categoryId)); //NOI18N
 
                        // Try to find it
                        for (final Category cat : categoryList) {
@@ -112,14 +112,14 @@ public class PizzaCategoryConverter implements Converter {
                        }
 
                        // Debug message
-                       this.loggerBeanLocal.logDebug(MessageFormat.format("getAsObject: category={0}", category)); //NOI18N
+                       // NOISY-DEBUG: this.loggerBeanLocal.logDebug(MessageFormat.format("getAsObject: category={0}", category)); //NOI18N
                } catch (final NumberFormatException ex) {
                        // Log exception (maybe to much?)
                        this.loggerBeanLocal.logException(ex);
                }
 
                // Trace message
-               this.loggerBeanLocal.logTrace(MessageFormat.format("getAsObject: category={0} - EXIT!", category)); //NOI18N
+               // NOISY-DEBUG: this.loggerBeanLocal.logTrace(MessageFormat.format("getAsObject: category={0} - EXIT!", category)); //NOI18N
 
                // Return it
                return category;