Skip to content
Snippets Groups Projects
Commit e9a376b4 authored by Shinsuke Sugaya's avatar Shinsuke Sugaya
Browse files

fix #2511 improve log messages

parent be918484
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment