Skip to content

Commit

Permalink
fix(openapi): tone down logging statements
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa authored Jul 24, 2024
1 parent 4e63756 commit 8ce08c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ private static Schema getSchemaFromContent(Content content) {
return null;
}
if (content.size() > 1) {
LOGGER.warn("Multiple schemas found, returning only the first one");
LOGGER.debug("Multiple schemas found, returning only the first one");
}
MediaType mediaType = content.values().iterator().next();
return mediaType.getSchema();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ void generate() {
.forEach(classEntry -> {
final TemplateContext templateContext = new TemplateContext(settings, classEntry);
if (hasOverride(templateContext)) {
settings.getLogger().info(String.format("Skipping %s since it has an override", templateContext.getClassName()));
settings.getLogger().fine(String.format("Skipping %s since it has an override", templateContext.getClassName()));
return;
}
settings.getLogger().info(String.format("Generating %ss", templateContext.getClassName()));
settings.getLogger().fine(String.format("Generating %ss", templateContext.getClassName()));
mkPackageDirectories(templateContext);
processTemplate(templateContext);
final String fileContents = modelTemplate.execute(templateContext.getContext());
Expand Down

0 comments on commit 8ce08c7

Please sign in to comment.