mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 22:50:53 +00:00
[aspnetcore] Fix incorrect logging messages (#9405)
* fix incorrect aspnetcore logging messages * address comments from review cleans up log messages
This commit is contained in:
parent
ec085713ce
commit
45d55f6b73
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user