Update of /var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/debug
In directory james.mmbase.org:/tmp/cvs-serv29524
Modified Files:
LogTag.java
Log Message:
See also:
http://cvs.mmbase.org/viewcvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/debug
Index: LogTag.java
===================================================================
RCS file:
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/debug/LogTag.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- LogTag.java 24 Jul 2008 11:29:20 -0000 1.16
+++ LogTag.java 24 Jul 2008 11:49:16 -0000 1.17
@@ -20,7 +20,7 @@
* The implementation of the log tag.
*
* @author Michiel Meeuwissen
- * @version $Id: LogTag.java,v 1.16 2008/07/24 11:29:20 michiel Exp $
+ * @version $Id: LogTag.java,v 1.17 2008/07/24 11:49:16 michiel Exp $
*/
public class LogTag extends ContextReferrerTag {
@@ -68,12 +68,15 @@
if (jspvar != null) {
pageContext.setAttribute(jspvar, log);
return EVAL_BODY;
- } else if (doLog) {
+ } else {
+ doLog = Logging.isEnabled(getLevel(), log);
+ if (doLog) {
return EVAL_BODY_BUFFERED;
} else {
return SKIP_BODY;
}
}
+ }
public int doEndTag() throws JspTagException {
if (doLog && jspvar == null) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs