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 2021/06/03 06:09:10 UTC
[myfaces-tobago] 02/02: refactor/perf: optimize logging
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 6e97433d599a8a6c94de0243c0a499af4bc599d7
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Thu Jun 3 08:07:51 2021 +0200
refactor/perf: optimize logging
---
.../main/java/org/apache/myfaces/tobago/util/ComponentUtils.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
index 7bbe857..2a0172f 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
@@ -827,8 +827,10 @@ public final class ComponentUtils {
component.getAttributes().put(DATA_ATTRIBUTES_KEY, map);
}
if (map.containsKey(name)) {
- LOG.warn("Data attribute '{}' is already set for component '{}' (old value='{}', new value='{}')!",
- name, component.getClientId(), map.get(name), value);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Data attribute '{}' is already set for component '{}' (old value='{}', new value='{}')!",
+ name, component.getClientId(), map.get(name), value);
+ }
}
map.put(name, value);
}