Pass the Java app context information using two separate arrays
[lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-log4j / org / lttng / ust / agent / log4j / LttngLogAppender.java
index 5c6df4dff4e9c8e213c9fb3c2fa5a83d7827848d..92b76de2594446e4afc67a559c30f931b487cb8e 100644 (file)
@@ -122,7 +122,7 @@ public class LttngLogAppender extends AppenderSkeleton implements ILttngHandler
 
                /* Retrieve all the requested context information we can find */
                Collection<Entry<String, Map<String, Integer>>> enabledContexts = agent.getEnabledAppContexts();
-               byte[] contextInfo = ContextInfoSerializer.queryAndSerializeRequestedContexts(enabledContexts);
+               ContextInfoSerializer.SerializedContexts contextInfo = ContextInfoSerializer.queryAndSerializeRequestedContexts(enabledContexts);
 
                eventCount.incrementAndGet();
 
@@ -135,7 +135,8 @@ public class LttngLogAppender extends AppenderSkeleton implements ILttngHandler
                                event.getTimeStamp(),
                                event.getLevel().toInt(),
                                event.getThreadName(),
-                               contextInfo);
+                               contextInfo.getEntriesArray(),
+                               contextInfo.getStringsArray());
        }
 
 }
This page took 0.023824 seconds and 4 git commands to generate.