From 2d7c9536b9d11517ad699a66e604b73fcdd298bb Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Wed, 24 Jul 2024 15:47:37 +0200 Subject: [PATCH] fix(openapi): tone down logging statements Signed-off-by: Marc Nuri --- .../kubernetes/schema/generator/InlineModelResolver.java | 2 +- .../kubernetes/schema/generator/model/ModelGenerator.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/InlineModelResolver.java b/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/InlineModelResolver.java index 21dba7a1037..a0289769d67 100644 --- a/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/InlineModelResolver.java +++ b/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/InlineModelResolver.java @@ -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(); diff --git a/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/model/ModelGenerator.java b/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/model/ModelGenerator.java index 402a5d1dbc3..61af1c31451 100644 --- a/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/model/ModelGenerator.java +++ b/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/model/ModelGenerator.java @@ -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());