You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/03/29 13:14:25 UTC

[logging-log4j2] 16/20: Merge from `main`

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

vy pushed a commit to branch recycler-api-3.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit b163e8f46191f7e06bc154971b9e4734094892f5
Merge: 30055745a6 219ef8a1f1
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Wed Mar 29 13:14:42 2023 +0200

    Merge from `main`

 .../src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --cc log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
index 06277b481d,e1bf84123f..014d5967a9
--- a/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
@@@ -69,9 -84,8 +69,7 @@@ public abstract class AbstractLogger im
      private final MessageFactory messageFactory;
      private final FlowMessageFactory flowMessageFactory;
      private static final ThreadLocal<int[]> recursionDepthHolder = new ThreadLocal<>(); // LOG4J2-1518, LOG4J2-2031
-     protected final Recycler<DefaultLogBuilder> recycler = LoggingSystem
-             .getRecyclerFactory()
-             .create(() -> new DefaultLogBuilder(this, null));
 -    private static final ThreadLocal<DefaultLogBuilder> logBuilder = ThreadLocal.withInitial(DefaultLogBuilder::new);
 -
++    private final Recycler<DefaultLogBuilder> recycler = LoggingSystem.getRecyclerFactory().create(() -> new DefaultLogBuilder(this, null));
  
      /**
       * Creates a new logger named after this class (or subclass).