You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/02/11 18:06:51 UTC

svn commit: r909078 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java

Author: lofwyr
Date: Thu Feb 11 17:06:41 2010
New Revision: 909078

URL: http://svn.apache.org/viewvc?rev=909078&view=rev
Log:
TOBAGO-606: better logging information

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java?rev=909078&r1=909077&r2=909078&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java Thu Feb 11 17:06:41 2010
@@ -71,7 +71,11 @@
     if (auto) {
       for (int i = 0; i < tokens.getSize(); i++) {
         if (tokens.get(i) instanceof RelativeLayoutToken) {
-          LOG.warn("Fixing layout token from * to auto, because a * in not allowed inside of a auto.");
+          LOG.warn("Fixing layout token from * to auto, because a * in not allowed inside of a auto. "
+              + "For more information please use the debug logging level.");
+          if (LOG.isDebugEnabled()) {
+            LOG.debug("Token * at index=" + i + ", orientation=" + orientation + ", grid=\n" + grid);
+          }
           tokens.set(i, AutoLayoutToken.INSTANCE);
         }
       }
@@ -243,7 +247,7 @@
           Measure position = LayoutUtils.getBeginOffset(orientation, getLayoutContainer());
           for (int k = 0; k < i; k++) {
             if (pixelMeasures[k] == null) {
-              LOG.warn("Measure is null, should be debugged... i=" + i + " k=" + k + " grid=" + grid, 
+              LOG.warn("Measure is null, should be debugged... i=" + i + " k=" + k + " grid=" + grid,
                   new RuntimeException());
             } else {
               position = position.add(pixelMeasures[k]);