From d5c15902e5623181b7cb2f22e7d2b1c48b511a35 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 16 Sep 2022 10:48:50 +0200 Subject: [PATCH] Filter out log lines coming from Narayana recovery service startup Fixes #27987 --- .../narayana/jta/deployment/NarayanaJtaProcessor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java b/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java index 18e88ec312178..abd0b310441cb 100644 --- a/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java +++ b/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java @@ -48,6 +48,7 @@ import io.quarkus.deployment.builditem.nativeimage.NativeImageSystemPropertyBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; +import io.quarkus.deployment.logging.LogCleanupFilterBuildItem; import io.quarkus.gizmo.ClassCreator; import io.quarkus.narayana.jta.runtime.CDIDelegatingTransactionManager; import io.quarkus.narayana.jta.runtime.NarayanaJtaProducers; @@ -173,4 +174,8 @@ void unremovableBean(BuildProducer unremovableBeans) { unremovableBeans.produce(UnremovableBeanBuildItem.beanTypes(TransactionManager.class)); } + @BuildStep + void logCleanupFilters(BuildProducer logCleanupFilters) { + logCleanupFilters.produce(new LogCleanupFilterBuildItem("com.arjuna.ats.jbossatx", "ARJUNA032010:", "ARJUNA032013:")); + } }