Added more logging if there are no HTTP stubs in the attached JAR. Fixes gh-1342

This commit is contained in:
Marcin Grzejszczak
2020-07-24 15:54:53 +02:00
parent 3ebd51cdaa
commit 8d46da6199

View File

@@ -53,10 +53,15 @@ class StubServer {
}
private StubServer stubServer() {
this.httpServerStub.registerMappings(this.mappings);
log.info("Started stub server for project ["
+ this.stubConfiguration.toColonSeparatedDependencyNotation()
+ "] on port " + this.httpServerStub.port());
this.httpServerStub.registerMappings(this.mappings);
+ "] on port " + this.httpServerStub.port() + " with ["
+ this.mappings.size() + "] mappings");
if (this.mappings.isEmpty() && getPort() != -1) {
log.warn(
"There are no HTTP mappings registered, if your contracts are not messaging based then something went wrong");
}
return this;
}