You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/11/12 16:28:53 UTC
svn commit: r713402 -
/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/RenderUtil.java
Author: bommel
Date: Wed Nov 12 07:28:53 2008
New Revision: 713402
URL: http://svn.apache.org/viewvc?rev=713402&view=rev
Log:
avoid unneeded warn messages
Modified:
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/RenderUtil.java
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/RenderUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/RenderUtil.java?rev=713402&r1=713401&r2=713402&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/RenderUtil.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/RenderUtil.java Wed Nov 12 07:28:53 2008
@@ -147,7 +147,9 @@
try {
defaultCharWidth = ThemeConfig.getValue(facesContext, component, "fontWidth");
} catch (NullPointerException e) {
- LOG.debug("no value for \"fontWidth\" found in theme-config");
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("no value for \"fontWidth\" found in theme-config");
+ }
}
String fontWidths = ResourceManagerUtil.getProperty(facesContext, "tobago", "tobago.font2.widths");
@@ -172,7 +174,9 @@
try {
defaultCharWidth = ThemeConfig.getValue(facesContext, component, "fontWidth");
} catch (NullPointerException e) {
- LOG.debug("no value for \"fontWidth\" found in theme-config");
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("no value for \"fontWidth\" found in theme-config");
+ }
}
String fontWidths = ResourceManagerUtil.getProperty(facesContext, "tobago", "tobago.font.widths");