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

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