Skip to content

Commit

Permalink
Make sure the logged process ID is correct in native mode
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Apr 3, 2024
1 parent b870f32 commit 9a66690
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
import io.quarkus.runtime.logging.LogFilterFactory;
import io.quarkus.runtime.logging.LogMetricsHandlerRecorder;
import io.quarkus.runtime.logging.LoggingSetupRecorder;
import io.smallrye.common.os.Process;

public final class LoggingResourceProcessor {

Expand Down Expand Up @@ -214,6 +215,7 @@ void miscSetup(
Consumer<NativeImageSystemPropertyBuildItem> systemProp,
Consumer<ServiceProviderBuildItem> provider) {
runtimeInit.accept(new RuntimeReinitializedClassBuildItem(ConsoleHandler.class.getName()));
runtimeInit.accept(new RuntimeReinitializedClassBuildItem(Process.class.getName()));
runtimeInit.accept(new RuntimeReinitializedClassBuildItem("io.smallrye.common.ref.References$ReaperThread"));
systemProp
.accept(new NativeImageSystemPropertyBuildItem("java.util.logging.manager", "org.jboss.logmanager.LogManager"));
Expand Down

0 comments on commit 9a66690

Please sign in to comment.