From 5fbff3f25d30813a821c6d62fa6891010097c185 Mon Sep 17 00:00:00 2001 From: "Piotr P. Karwasz" Date: Fri, 16 Feb 2024 09:37:08 +0100 Subject: [PATCH] Review corrections for #2278 --- .../logging/log4j/core/config/AbstractConfiguration.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java index 0345358796b..10a2bcfab47 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java @@ -674,9 +674,7 @@ protected void doConfigure() { boolean setRoot = false; for (final Node child : rootNode.getChildren()) { if ("Properties".equalsIgnoreCase(child.getName())) { - if (tempLookup == runtimeStrSubstitutor.getVariableResolver()) { - LOGGER.error("Properties declaration must be the first element in the configuration"); - } + // We already used this node continue; } createConfiguration(child, null);