You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2022/08/18 15:29:38 UTC

[logging-log4j2] branch release-2.x updated: Revert commit 80aae21

This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 092f64370e Revert commit 80aae21
092f64370e is described below

commit 092f64370e9a8973010c64aaf902f61c5078a9ce
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Thu Aug 18 17:29:32 2022 +0200

    Revert commit 80aae21
---
 .../java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java b/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
index 32535c14af..32b08c4040 100644
--- a/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
+++ b/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
@@ -163,13 +163,13 @@ final class Log4jWebInitializerImpl extends AbstractLifeCycle implements Log4jWe
         }
         if (location != null && location.contains(",")) {
             final List<URI> uris = getConfigURIs(location);
-            this.loggerContext = Configurator.initialize(this.name, servletContext.getClassLoader(), uris,
+            this.loggerContext = Configurator.initialize(this.name, this.getClassLoader(), uris,
                     WebLoggerContextUtils.createExternalEntry(this.servletContext));
             return;
         }
 
         final URI uri = getConfigURI(location);
-        this.loggerContext = Configurator.initialize(this.name, servletContext.getClassLoader(), uri,
+        this.loggerContext = Configurator.initialize(this.name, this.getClassLoader(), uri,
                 WebLoggerContextUtils.createExternalEntry(this.servletContext));
     }