Warn message if scm not matched
This commit is contained in:
@@ -197,10 +197,10 @@ class GitStubDownloader implements StubDownloader {
|
||||
catch (IOException e) {
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("No matching contracts were found in the repo for ["
|
||||
if (log.isWarnEnabled()) {
|
||||
log.warn("No matching contracts were found in the repo for ["
|
||||
+ stubConfiguration.toColonSeparatedDependencyNotation()
|
||||
+ "]. Returning null");
|
||||
+ "]");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,9 @@ class PactStubDownloader implements StubDownloader {
|
||||
String providerName = providerName(stubConfiguration);
|
||||
List<Pact> pacts = loader.load(providerName);
|
||||
if (pacts.isEmpty()) {
|
||||
log.warn("No pact definitions found for provider [" + providerName + "]");
|
||||
if (log.isWarnEnabled()) {
|
||||
log.warn("No pact definitions found for provider [" + providerName + "]");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
File tmpDirWhereStubsWillBeUnzipped = TemporaryFileStorage.createTempDir(TEMP_DIR_PREFIX);
|
||||
|
||||
Reference in New Issue
Block a user