Revision: 1244
          http://stripes.svn.sourceforge.net/stripes/?rev=1244&view=rev
Author:   bengunter
Date:     2010-05-22 20:15:42 +0000 (Sat, 22 May 2010)

Log Message:
-----------
STS-391: Corrected some log statements that were getting logged when they 
shouldn't have.

Modified Paths:
--------------
    
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java

Modified: 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
===================================================================
--- 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
  2010-05-21 20:42:48 UTC (rev 1243)
+++ 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
  2010-05-22 20:15:42 UTC (rev 1244)
@@ -107,12 +107,14 @@
             pushPageContextAttributes(context.getParameters());
         }
 
+        if (context.isComponentRenderPhase()) {
+            log.debug("Start component render phase for ", 
context.getComponent(), " in ", context
+                    .getRenderPage());
+        }
+
         // Render tags never output their contents directly
         context.getOut().setSilent(true, pageContext);
 
-        log.debug("Start component render phase for ", context.getComponent(), 
" in ", context
-                .getRenderPage());
-
         return EVAL_BODY_INCLUDE;
     }
 
@@ -174,11 +176,13 @@
                 popPageContextAttributes(); // remove any dynattrs from page 
scope
             }
 
+            if (context.isComponentRenderPhase()) {
+                log.debug("End component render phase for ", 
context.getComponent(), " in ",
+                        context.getRenderPage());
+            }
+
             // Restore output's silent flag
             context.getOut().setSilent(silent, pageContext);
-
-            log.debug("End component render phase for ", 
context.getComponent(), " in ", context
-                    .getRenderPage());
         }
         finally {
             this.context = null;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------

_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to