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

pkarwasz pushed a commit to branch ScopedContext-replace-with-interface
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit c6705e80046137ce719820470861ec1ec88ee9f2
Author: Ralph Goers <[email protected]>
AuthorDate: Wed Apr 3 14:21:10 2024 -0700

    Remove ParameterizedMapMessage from test
---
 .../src/main/java/org/apache/logging/log4j/test/TestLogger.java     | 6 ------
 src/site/_release-notes/_2.x.x.adoc                                 | 2 +-
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git 
a/log4j-api-test/src/main/java/org/apache/logging/log4j/test/TestLogger.java 
b/log4j-api-test/src/main/java/org/apache/logging/log4j/test/TestLogger.java
index 2387fee7e6..b308434cfc 100644
--- a/log4j-api-test/src/main/java/org/apache/logging/log4j/test/TestLogger.java
+++ b/log4j-api-test/src/main/java/org/apache/logging/log4j/test/TestLogger.java
@@ -28,7 +28,6 @@ import org.apache.logging.log4j.Level;
 import org.apache.logging.log4j.Marker;
 import org.apache.logging.log4j.message.Message;
 import org.apache.logging.log4j.message.MessageFactory;
-import org.apache.logging.log4j.message.ParameterizedMapMessage;
 import org.apache.logging.log4j.spi.AbstractLogger;
 
 /**
@@ -88,11 +87,6 @@ public class TestLogger extends AbstractLogger {
             sb.append(mdc);
             sb.append(' ');
         }
-        if (message instanceof ParameterizedMapMessage) {
-            sb.append(" Map data: ");
-            sb.append(((ParameterizedMapMessage) 
message).getData().toString());
-            sb.append(' ');
-        }
         final Object[] params = message.getParameters();
         final Throwable t;
         if (throwable == null
diff --git a/src/site/_release-notes/_2.x.x.adoc 
b/src/site/_release-notes/_2.x.x.adoc
index fcb6f0773f..f5b9de980e 100644
--- a/src/site/_release-notes/_2.x.x.adoc
+++ b/src/site/_release-notes/_2.x.x.adoc
@@ -46,7 +46,7 @@ This releases contains ...
 [#release-notes-2-x-x-updated]
 === Updated
 
-* Add ScopedContext to log4j-api and ScopedContextDataProvider in log4j-core. 
(https://github.com/apache/logging-log4j-kotlin/issues/71[kotlin-71], 
https://github.com/apache/logging-log4j2/discussions/2214[2214])
+* Add ScopedContext to log4j-api and ScopedContextDataProvider in log4j-core. 
Moved ContextDataProvider to log4j-api to allow custom data providers to be 
included in lookups. 
(https://github.com/apache/logging-log4j-kotlin/issues/71[kotlin-71], 
https://github.com/apache/logging-log4j2/discussions/2214[2214])
 * Update `actions/checkout` to version `4.1.2` 
(https://github.com/apache/logging-log4j2/pull/2370[2370])
 * Update `co.elastic.clients:elasticsearch-java` to version `8.13.1` 
(https://github.com/apache/logging-log4j2/pull/2437[2437])
 * Update `com.fasterxml.jackson:jackson-bom` to version `2.17.0` 
(https://github.com/apache/logging-log4j2/pull/2372[2372])

Reply via email to