Skip to content

Commit

Permalink
use debug instead of warn,error to show less log (#19646)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Sep 23, 2024
1 parent 565af33 commit 98783f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2649,11 +2649,11 @@ protected void updateModelForComposedSchema(CodegenModel m, Schema schema, Map<S
m.xmlName = ((Schema) innerSchema).getXml().getName();
}
if (modelDiscriminators > 1) {
LOGGER.error("Allof composed schema is inheriting >1 discriminator. Only use one discriminator: {}", composed);
LOGGER.debug("Allof composed schema is inheriting >1 discriminator. Only use one discriminator: {}", composed);
}

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

0 comments on commit 98783f8

Please sign in to comment.