myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] branch tobago-4.x updated: logging
Date Fri, 16 Oct 2020 10:32:35 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch tobago-4.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-4.x by this push:
     new 4b67792  logging
4b67792 is described below

commit 4b67792ab2758882e2e871753e3131dfc38270c8
Author: Udo Schnurpfeil <udo.schnurpfeil@irian.eu>
AuthorDate: Fri Oct 16 12:32:17 2020 +0200

    logging
---
 .../tobago/internal/renderkit/renderer/SubviewRenderer.java       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SubviewRenderer.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SubviewRenderer.java
index 2f1292a..b03eff3 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SubviewRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SubviewRenderer.java
@@ -29,12 +29,14 @@ import java.io.IOException;
 
 public class SubviewRenderer extends RendererBase {
 
-    private static final Logger LOG = LoggerFactory.getLogger(SubviewRenderer.class);
+  private static final Logger LOG = LoggerFactory.getLogger(SubviewRenderer.class);
 
   @Override
   public void encodeBegin(final FacesContext facesContext, final UIComponent component)
       throws IOException {
-    LOG.debug("Subview component = {}", component.getClass().getName());
+    if (LOG.isDebugEnabled()) {
+      LOG.debug("Subview component = {}", component.getClass().getName());
+    }
     super.encodeBegin(facesContext, component);
   }
 
@@ -42,6 +44,4 @@ public class SubviewRenderer extends RendererBase {
   public void encodeEnd(final FacesContext facesContext,
                         final UIComponent component) throws IOException {
   }
-
 }
-


Mime
View raw message