Browse Source

fix #2511 improve log messages

Shinsuke Sugaya 4 years ago
parent
commit
e9a376b473
1 changed files with 10 additions and 3 deletions
  1. 10 3
      src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java

+ 10 - 3
src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java

@@ -258,23 +258,30 @@ public class LabelTypeHelper {
                 if (includedPaths.matcher(path).matches()) {
                     if (excludedPaths != null && excludedPaths.matcher(path).matches()) {
                         if (logger.isDebugEnabled()) {
-                            logger.debug("Path {} matched against the excludes paths expression {}", path, excludedPaths);
+                            logger.debug("Path {} matches the include/exclude path expression {} on {} of label.", path, excludedPaths,
+                                    value);
                         }
                         return false;
                     }
+                    if (logger.isDebugEnabled()) {
+                        logger.debug("Path {} matches the include path expression {} on {} of label.", path, excludedPaths, value);
+                    }
                     return true;
                 }
                 if (logger.isDebugEnabled()) {
-                    logger.debug("Path {} wasn't matched against the include paths expression {}", path, includedPaths);
+                    logger.debug("Path {} does not match the include path expression {} on {} of label.", path, excludedPaths, value);
                 }
                 return false;
             } else {
                 if (excludedPaths != null && excludedPaths.matcher(path).matches()) {
                     if (logger.isDebugEnabled()) {
-                        logger.debug("Path {} matched against the excludes paths expression {}", path, excludedPaths);
+                        logger.debug("Path {} matches the exclude path expression {} on {} of label.", path, excludedPaths, value);
                     }
                     return false;
                 }
+                if (logger.isDebugEnabled()) {
+                    logger.debug("Path {} does not match the exclude path expression {} on {} of label.", path, excludedPaths, value);
+                }
                 return true;
             }
         }