Skip to content

Commit

Permalink
Merge pull request #406 from jamezp/use-default-configurator
Browse files Browse the repository at this point in the history
Use the PropertyLogContextConfigurator if no factory could be found.
jamezp authored Jun 27, 2023
2 parents 9387782 + a7ebb39 commit 11bea6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/jboss/logmanager/LogManager.java
Original file line number Diff line number Diff line change
@@ -34,6 +34,8 @@
import java.util.function.Function;
import java.util.logging.Filter;

import org.jboss.logmanager.configuration.PropertyLogContextConfigurator;

import io.smallrye.common.constraint.Assert;

/**
@@ -135,7 +137,7 @@ private void doConfigure(InputStream inputStream) {
configurator = factory == null ? null : factory.create();
if (configurator == null) {
if (problems == null) {
configuratorRef.set(configurator = LogContextConfigurator.EMPTY);
configuratorRef.set(configurator = new PropertyLogContextConfigurator());
} else {
final ServiceConfigurationError e = new ServiceConfigurationError(
"Failed to configure log configurator service");

0 comments on commit 11bea6f

Please sign in to comment.