From 13d08a8b815fafb9a009e3773af92ad2696cb5e5 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 2 Feb 2026 18:51:19 +0100 Subject: fix!: Update Quarkus to 3.31.1, use RuntimeValue for configuration. Quarkus 3.31.1 is stricter than previous versions. This change brings the implementation of the recorder in line with its expectations. BREAKING CHANGE: API changes to GoogleCloudLoggingProcessor, GoogleCloudJsonLoggingRecorder. Change-Id: I98fd2a0308c664fb94278372a884dc42311a374e --- .../jsonlogging/runtime/GoogleCloudJsonLoggingRecorder.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'runtime/src/main') diff --git a/runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/runtime/GoogleCloudJsonLoggingRecorder.java b/runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/runtime/GoogleCloudJsonLoggingRecorder.java index 74b63c6..2b253da 100644 --- a/runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/runtime/GoogleCloudJsonLoggingRecorder.java +++ b/runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/runtime/GoogleCloudJsonLoggingRecorder.java @@ -18,6 +18,13 @@ import java.util.stream.Collectors; @Recorder public class GoogleCloudJsonLoggingRecorder { + private final RuntimeValue configuration; + + public GoogleCloudJsonLoggingRecorder( + RuntimeValue configuration) { + this.configuration = configuration; + } + /** * Registers {@link Formatter} as a log formatter for the application. * @@ -26,9 +33,8 @@ public class GoogleCloudJsonLoggingRecorder { * * @return the registered {@link Formatter}. */ - public RuntimeValue> initialize( - GoogleCloudJsonLoggingConfiguration configuration) { - if (!configuration.enabled()) { + public RuntimeValue> initialize() { + if (!configuration.getValue().enabled()) { return new RuntimeValue<>(Optional.empty()); } -- cgit v1.2.1