Pass the Java app context information using two separate arrays
[deliverable/lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-jul / org / lttng / ust / agent / jul / LttngLogHandler.java
index 535a2a3f57fd0d54e9216891354f7fe28a373e13..00c5c48cc77cb0ac352f57e1f5e7e0dffe6770fc 100644 (file)
@@ -123,7 +123,7 @@ public class LttngLogHandler extends Handler 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();
 
@@ -139,7 +139,8 @@ public class LttngLogHandler extends Handler implements ILttngHandler {
                                record.getMillis(),
                                record.getLevel().intValue(),
                                record.getThreadID(),
-                               contextInfo);
+                               contextInfo.getEntriesArray(),
+                               contextInfo.getStringsArray());
        }
 
 }
This page took 0.024869 seconds and 5 git commands to generate.