You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/03/29 19:10:41 UTC

logging-log4j2 git commit: LOG4J2-1278 fix test that will break with unrolled varargs: with unrolled varargs only the parameters used in the pattern will be preserved

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 591c5847a -> 86f9ae344


LOG4J2-1278	fix test that will break with unrolled varargs: with unrolled varargs only the parameters used in the pattern will be preserved


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/86f9ae34
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/86f9ae34
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/86f9ae34

Branch: refs/heads/master
Commit: 86f9ae344a3687a6e07d1fab49406c41f31d3b32
Parents: 591c584
Author: rpopma <rp...@apache.org>
Authored: Wed Mar 30 02:10:47 2016 +0900
Committer: rpopma <rp...@apache.org>
Committed: Wed Mar 30 02:10:47 2016 +0900

----------------------------------------------------------------------
 .../logging/log4j/core/layout/CsvParameterLayoutTest.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/86f9ae34/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/CsvParameterLayoutTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/CsvParameterLayoutTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/CsvParameterLayoutTest.java
index 27a7318..5c80a01 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/CsvParameterLayoutTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/CsvParameterLayoutTest.java
@@ -113,10 +113,10 @@ public class CsvParameterLayoutTest {
     }
 
     private void logDebugNormalApi() {
-        root.debug(null, 1, 2, 3);
-        root.debug(null, 2, 3);
-        root.debug(null, 5, 6);
-        root.debug(null, 7, 8, 9, 10);
+        root.debug("{}{}{}", 1, 2, 3);
+        root.debug("{}{}{}", 2, 3);
+        root.debug("{}{}{}", 5, 6);
+        root.debug("{}{}{}", 7, 8, 9, 10);
     }
 
     private void logDebugObjectArrayMessage() {