Added debug info for stubs per consumer

This commit is contained in:
Marcin Grzejszczak
2018-08-09 14:11:59 +02:00
parent e5b0a9dabc
commit e0afcd523b

View File

@@ -190,7 +190,13 @@ class StubRepository {
return true;
}
String consumerName = this.options.getConsumerName();
return file.getAbsolutePath().contains(File.separator + consumerName + File.separator);
String searchedConsumerName = File.separator + consumerName + File.separator;
String absolutePath = file.getAbsolutePath();
boolean stubPerConsumerMatching = absolutePath.contains(searchedConsumerName);
if (log.isDebugEnabled()) {
log.debug("Absolute path [" + absolutePath + "] contains [" + searchedConsumerName + "] in its path [" + stubPerConsumerMatching + "]");
}
return stubPerConsumerMatching;
}
private static boolean isContractDescriptor(File file) {