Skip to content

Commit 98783f8

Browse files
authored
use debug instead of warn,error to show less log (#19646)
1 parent 565af33 commit 98783f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,11 +2649,11 @@ protected void updateModelForComposedSchema(CodegenModel m, Schema schema, Map<S
26492649
m.xmlName = ((Schema) innerSchema).getXml().getName();
26502650
}
26512651
if (modelDiscriminators > 1) {
2652-
LOGGER.error("Allof composed schema is inheriting >1 discriminator. Only use one discriminator: {}", composed);
2652+
LOGGER.debug("Allof composed schema is inheriting >1 discriminator. Only use one discriminator: {}", composed);
26532653
}
26542654

26552655
if (modelImplCnt++ > 1) {
2656-
LOGGER.warn("More than one inline schema specified in allOf:. Only the first one is recognized. All others are ignored.");
2656+
LOGGER.debug("More than one inline schema specified in allOf:. Only the first one is recognized. All others are ignored.");
26572657
break; // only one schema with discriminator allowed in allOf
26582658
}
26592659
}

0 commit comments

Comments
 (0)