From 78ec3fa2dbcff46bf4aba8e4a77a7f4e5dc67af9 Mon Sep 17 00:00:00 2001 From: Joe DiPol Date: Wed, 30 Oct 2024 17:08:48 -0700 Subject: [PATCH] 4.x: clean up warning messages from archetype generated projects (#9451) * Change log level of missing static file message to DEBUG * Silence warning from Jersey wadl support using logging.properties --- .../files/src/main/resources/logging.properties.mustache | 3 +++ .../src/main/java/io/helidon/openapi/OpenApiFeature.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/archetypes/archetypes/src/main/archetype/mp/common/files/src/main/resources/logging.properties.mustache b/archetypes/archetypes/src/main/archetype/mp/common/files/src/main/resources/logging.properties.mustache index 40e77eff6ea..dac99e33461 100644 --- a/archetypes/archetypes/src/main/archetype/mp/common/files/src/main/resources/logging.properties.mustache +++ b/archetypes/archetypes/src/main/archetype/mp/common/files/src/main/resources/logging.properties.mustache @@ -20,6 +20,9 @@ java.util.logging.SimpleFormatter.format=%1$tY.%1$tm.%1$td %1$tH:%1$tM:%1$tS %4$ # Quiet Weld org.jboss.level=WARNING +# Quiet Jersey wadl support +org.glassfish.jersey.server.wadl.level=SEVERE + # Component specific log levels #io.helidon.config.level=INFO #io.helidon.security.level=INFO diff --git a/openapi/openapi/src/main/java/io/helidon/openapi/OpenApiFeature.java b/openapi/openapi/src/main/java/io/helidon/openapi/OpenApiFeature.java index 3d410c227bc..355b0fe4de3 100644 --- a/openapi/openapi/src/main/java/io/helidon/openapi/OpenApiFeature.java +++ b/openapi/openapi/src/main/java/io/helidon/openapi/OpenApiFeature.java @@ -81,7 +81,7 @@ public final class OpenApiFeature implements Weighted, ServerFeature, RuntimeTyp } if (defaultContent == null) { defaultContent = ""; - LOGGER.log(Level.WARNING, "Static OpenAPI file not found, checked: {0}", DEFAULT_FILE_PATHS); + LOGGER.log(Level.DEBUG, "Static OpenAPI file not found, checked: {0}", DEFAULT_FILE_PATHS); } } content = defaultContent;