From 76e7e8b7b16f6d28299ff638fe97f39330651041 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 31 May 2019 17:40:32 +0200 Subject: [PATCH] Add some additional cleanup filters --- .../deployment/SmallRyeFaultToleranceProcessor.java | 3 +++ .../metrics/deployment/SmallRyeMetricsProcessor.java | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java b/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java index c620fb0ceca93..515e5e79642ad 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java @@ -151,6 +151,7 @@ public void transform(TransformationContext context) { public void logCleanup(BuildProducer logCleanupFilter) { logCleanupFilter.produce(new LogCleanupFilterBuildItem("io.smallrye.faulttolerance.HystrixInitializer", "### Init Hystrix ###", + "### Reset Hystrix ###", // no need to log the strategy if it is the default "Hystrix concurrency strategy used: DefaultHystrixConcurrencyStrategy")); logCleanupFilter.produce(new LogCleanupFilterBuildItem("io.smallrye.faulttolerance.DefaultHystrixConcurrencyStrategy", @@ -159,6 +160,8 @@ public void logCleanup(BuildProducer logCleanupFilter logCleanupFilter.produce(new LogCleanupFilterBuildItem("com.netflix.config.sources.URLConfigurationSource", "No URLs will be polled as dynamic configuration sources.", "To enable URLs as dynamic configuration sources")); + logCleanupFilter.produce(new LogCleanupFilterBuildItem("com.netflix.config.DynamicPropertyFactory", + "DynamicPropertyFactory is initialized with configuration sources")); } @Record(ExecutionTime.STATIC_INIT) diff --git a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java index 4ba4ac6e8cf80..aaa673521b972 100644 --- a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java +++ b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java @@ -42,6 +42,7 @@ import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.ShutdownContextBuildItem; import io.quarkus.deployment.builditem.substrate.ReflectiveClassBuildItem; +import io.quarkus.deployment.logging.LogCleanupFilterBuildItem; import io.quarkus.runtime.annotations.ConfigItem; import io.quarkus.runtime.annotations.ConfigRoot; import io.quarkus.smallrye.metrics.runtime.SmallRyeMetricsServlet; @@ -151,4 +152,9 @@ void registerBaseAndVendorMetrics(SmallRyeMetricsTemplate metrics, ShutdownConte metrics.registerVendorMetrics(shutdown); } + @BuildStep + public void logCleanup(BuildProducer logCleanupFilter) { + logCleanupFilter.produce(new LogCleanupFilterBuildItem("io.smallrye.metrics.MetricsRegistryImpl", + "Register metric [")); + } }