Introduce a verbose mode for the Java agent
[deliverable/lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-common / org / lttng / ust / agent / context / ContextInfoSerializer.java
index 57382bd1c7d3613f5ad4393a0d3f75038b17e22a..be613043920af9b63290962df6c076879c43aa43 100644 (file)
@@ -24,6 +24,8 @@ import java.nio.charset.Charset;
 import java.util.Collection;
 import java.util.Map;
 
+import org.lttng.ust.agent.utils.LttngUstAgentLogger;
+
 /**
  * This class is used to serialize the list of "context info" objects to pass
  * through JNI.
@@ -142,6 +144,10 @@ public class ContextInfoSerializer {
                                buffer.put(strArray);
                                buffer.position(buffer.position() + remainingBytes);
 
+                               LttngUstAgentLogger.log(ContextInfoSerializer.class,
+                                               "ContextInfoSerializer: Context to be sent through JNI: " + fullContextName + '=' +
+                                               (contextInfo == null ? "null" : contextInfo.toString()));
+
                                serializeContextInfo(buffer, contextInfo);
                        }
                }
This page took 0.024832 seconds and 5 git commands to generate.