Warn message if scm not matched

This commit is contained in:
Marcin Grzejszczak
2019-01-02 19:00:40 +01:00
parent 20c12e569d
commit 120820ff9c
2 changed files with 6 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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);