WW-4271 Improves pattern logging in JSONUtil

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1556509 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Lukasz Lenart
2014-01-08 12:03:18 +00:00
parent bb31672e8a
commit e73cc3fb09
@@ -476,8 +476,8 @@ public class JSONUtil {
private static void addPattern(List<Pattern> results, String pattern, String type) {
results.add(REGEXP_PATTERN.equals(type) ? Pattern.compile(pattern) : WildcardUtil.compileWildcardPattern(pattern));
if (LOG.isDebugEnabled()) {
LOG.debug("Adding include " + (REGEXP_PATTERN.equals(type) ? "property" : "wildcard") + " expression: " + pattern);
if (LOG.isTraceEnabled()) {
LOG.trace("Adding include " + (REGEXP_PATTERN.equals(type) ? "property" : "wildcard") + " expression: " + pattern);
}
}