logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1521680 - /logging/log4j/log4j2/trunk/log4j-slf4j-impl/src/main/java/org/slf4j/helpers/EventDataConverter.java
Date Tue, 10 Sep 2013 23:30:32 GMT
Author: ggregory
Date: Tue Sep 10 23:30:32 2013
New Revision: 1521680

URL: http://svn.apache.org/r1521680
Log:
Better param name.

Modified:
    logging/log4j/log4j2/trunk/log4j-slf4j-impl/src/main/java/org/slf4j/helpers/EventDataConverter.java

Modified: logging/log4j/log4j2/trunk/log4j-slf4j-impl/src/main/java/org/slf4j/helpers/EventDataConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-slf4j-impl/src/main/java/org/slf4j/helpers/EventDataConverter.java?rev=1521680&r1=1521679&r2=1521680&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-slf4j-impl/src/main/java/org/slf4j/helpers/EventDataConverter.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-slf4j-impl/src/main/java/org/slf4j/helpers/EventDataConverter.java
Tue Sep 10 23:30:32 2013
@@ -28,11 +28,11 @@ import java.util.Map;
  */
 public class EventDataConverter {
 
-    public Message convertEvent(final String s1, final Object[] objects, final Throwable
throwable) {
+    public Message convertEvent(final String message, final Object[] objects, final Throwable
throwable) {
         Message msg;
         try {
             final EventData data = (objects != null && objects[0] instanceof EventData)
? (EventData) objects[0] :
-                new EventData(s1);
+                new EventData(message);
             msg = new StructuredDataMessage(data.getEventId(), data.getMessage(), data.getEventType());
             for (final Map.Entry<String, Object> entry : data.getEventMap().entrySet())
{
                 final String key = entry.getKey();
@@ -43,7 +43,7 @@ public class EventDataConverter {
                 ((StructuredDataMessage) msg).put(entry.getKey(), String.valueOf(entry.getValue()));
             }
         } catch (final Exception ex) {
-            msg = new ParameterizedMessage(s1, objects, throwable);
+            msg = new ParameterizedMessage(message, objects, throwable);
         }
         return msg;
     }



Mime
View raw message