Skip to content

Commit 5d47e93

Browse files
committed
Raise logging level to ERROR for config file matches with inactive ConfigurationFactorys (#1592)
Co-authored-by: Łukasz Spyra (@lukaszspyra)
1 parent cc2e789 commit 5d47e93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ private Configuration getConfiguration(
536536
final ConfigurationSource source = ConfigurationSource.fromResource(configName, loader);
537537
if (source != null) {
538538
if (!factory.isActive()) {
539-
LOGGER.warn(
540-
"Found configuration file {} for inactive ConfigurationFactory {}",
539+
LOGGER.error(
540+
"Found configuration file `{}` for the inactive `{}`. This `ConfigurationFactory` implementation might be inactive due to a missing dependency.",
541541
configName,
542542
factory.getClass().getName());
543543
}

0 commit comments

Comments
 (0)