From 852c18d7869c66c3c3ae97bd300995f68e70d0bc Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 15 Apr 2016 20:21:38 +0200 Subject: [PATCH] very noisy debug lines commented out --- .../converter/category/PizzaCategoryConverter.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java b/src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java index ae0c8bee..8f3fe385 100644 --- a/src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java +++ b/src/java/org/mxchange/pizzaapplication/converter/category/PizzaCategoryConverter.java @@ -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 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; -- 2.39.5