summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2026-02-02 18:51:19 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2026-02-02 18:58:43 +0100
commit13d08a8b815fafb9a009e3773af92ad2696cb5e5 (patch)
treec8116d35c53b749f72a2bf54d3bebce41beded03 /runtime/src
parent6d73e12e018980785808e13e393f41f6e20d18d6 (diff)
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
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/runtime/GoogleCloudJsonLoggingRecorder.java12
1 files changed, 9 insertions, 3 deletions
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<GoogleCloudJsonLoggingConfiguration> configuration;
+
+ public GoogleCloudJsonLoggingRecorder(
+ RuntimeValue<GoogleCloudJsonLoggingConfiguration> 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<Optional<java.util.logging.Formatter>> initialize(
- GoogleCloudJsonLoggingConfiguration configuration) {
- if (!configuration.enabled()) {
+ public RuntimeValue<Optional<java.util.logging.Formatter>> initialize() {
+ if (!configuration.getValue().enabled()) {
return new RuntimeValue<>(Optional.empty());
}