summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-01-15 14:03:41 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-01-15 14:27:26 +0100
commit93ecfd1e0c1d1e40fb17e580a7a11de35383ef79 (patch)
tree6265b4bfe75ddab0a566c6d1b32ca1391081fd9b /runtime/src
parent20210245e619658c2459c77223d9abe3c643a882 (diff)
Load providers registered through the ServiceLoader mechanism.
Change-Id: I392e78b34c8330e9b4c06d57b1423ca552ba6fc1
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/runtime/GoogleCloudJsonLoggingRecorder.java2
1 files changed, 1 insertions, 1 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 661b69f..84d9112 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
@@ -31,6 +31,6 @@ public class GoogleCloudJsonLoggingRecorder {
var labelProviders =
Arc.container().select(LabelProvider.class).stream().collect(Collectors.toList());
- return new RuntimeValue<>(Optional.of(new Formatter(parameterProviders, labelProviders)));
+ return new RuntimeValue<>(Optional.of(Formatter.load(parameterProviders, labelProviders)));
}
}