Skip to content

Commit

Permalink
Add some additional cleanup filters
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed May 31, 2019
1 parent bd1326f commit bfd2337
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public void transform(TransformationContext context) {
public void logCleanup(BuildProducer<LogCleanupFilterBuildItem> 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",
Expand All @@ -159,6 +160,8 @@ public void logCleanup(BuildProducer<LogCleanupFilterBuildItem> 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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -151,4 +152,9 @@ void registerBaseAndVendorMetrics(SmallRyeMetricsTemplate metrics, ShutdownConte
metrics.registerVendorMetrics(shutdown);
}

@BuildStep
public void logCleanup(BuildProducer<LogCleanupFilterBuildItem> logCleanupFilter) {
logCleanupFilter.produce(new LogCleanupFilterBuildItem("io.smallrye.metrics.MetricsRegistryImpl",
"Register metric ["));
}
}

0 comments on commit bfd2337

Please sign in to comment.