[aspnetcore] Fix incorrect logging messages (#9405)

* fix incorrect aspnetcore logging messages

* address comments from review

cleans up log messages
This commit is contained in:
matt beary
2021-05-05 21:46:06 -05:00
committed by GitHub
parent ec085713ce
commit 45d55f6b73

View File

@@ -592,6 +592,7 @@ public class AspNetCoreServerCodegen extends AbstractCSharpCodegen {
private void setBuildTarget() { private void setBuildTarget() {
setCliOption(buildTarget); setCliOption(buildTarget);
if ("library".equals(buildTarget.getOptValue())) { if ("library".equals(buildTarget.getOptValue())) {
LOGGER.warn("buildTarget is {} so changing default isLibrary to true", buildTarget.getOptValue());
isLibrary = true; isLibrary = true;
projectSdk = SDK_LIB; projectSdk = SDK_LIB;
additionalProperties.put(CLASS_MODIFIER, "abstract"); additionalProperties.put(CLASS_MODIFIER, "abstract");
@@ -636,7 +637,7 @@ public class AspNetCoreServerCodegen extends AbstractCSharpCodegen {
private void setUseSwashbuckle() { private void setUseSwashbuckle() {
if (isLibrary) { if (isLibrary) {
LOGGER.warn("buildTarget is " + buildTarget.getOptValue() + " so changing default isLibrary to false "); LOGGER.warn("isLibrary is true so changing default useSwashbuckle to false");
useSwashbuckle = false; useSwashbuckle = false;
} else { } else {
useSwashbuckle = true; useSwashbuckle = true;