From 93ecfd1e0c1d1e40fb17e580a7a11de35383ef79 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 15 Jan 2022 14:03:41 +0100 Subject: Load providers registered through the ServiceLoader mechanism. Change-Id: I392e78b34c8330e9b4c06d57b1423ca552ba6fc1 --- .../googlecloud/jsonlogging/runtime/GoogleCloudJsonLoggingRecorder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/src') 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))); } } -- cgit v1.2.3