You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2021/04/04 18:33:06 UTC

[logging-log4j2] branch release-2.x updated: Specify the locale

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

rgoers 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 08e6b7d  Specify the locale
08e6b7d is described below

commit 08e6b7d1d6db87f44f922ba559baa3910696170a
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Sun Apr 4 11:31:38 2021 -0700

    Specify the locale
---
 log4j-api/src/test/java/org/apache/logging/log4j/EventLoggerTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log4j-api/src/test/java/org/apache/logging/log4j/EventLoggerTest.java b/log4j-api/src/test/java/org/apache/logging/log4j/EventLoggerTest.java
index fe66f2e..e89dc55 100644
--- a/log4j-api/src/test/java/org/apache/logging/log4j/EventLoggerTest.java
+++ b/log4j-api/src/test/java/org/apache/logging/log4j/EventLoggerTest.java
@@ -41,7 +41,7 @@ public class EventLoggerTest {
     public void structuredData() {
         ThreadContext.put("loginId", "JohnDoe");
         ThreadContext.put("ipAddress", "192.168.0.120");
-        ThreadContext.put("locale", Locale.US.getDisplayName());
+        ThreadContext.put("locale", Locale.US.getDisplayName(Locale.US));
         final StructuredDataMessage msg = new StructuredDataMessage("Transfer@18060", "Transfer Complete", "Audit");
         msg.put("ToAccount", "123456");
         msg.put("FromAccount", "123457");