Add some logging to the AbstractLttngAgent
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Fri, 12 Feb 2016 00:45:47 +0000 (19:45 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Feb 2016 22:54:29 +0000 (17:54 -0500)
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java

index f8ad187bd99ce5e204a1a8d37dc4fb1fbb289936..3c64e180a6474bd30e94d2e07db253b3e2db0364 100644 (file)
@@ -31,6 +31,7 @@ import org.lttng.ust.agent.client.ILttngTcpClientListener;
 import org.lttng.ust.agent.client.LttngTcpSessiondClient;
 import org.lttng.ust.agent.filter.FilterChangeNotifier;
 import org.lttng.ust.agent.session.EventRule;
+import org.lttng.ust.agent.utils.LttngUstAgentLogger;
 
 /**
  * Base implementation of a {@link ILttngAgent}.
@@ -148,6 +149,9 @@ public abstract class AbstractLttngAgent<T extends ILttngHandler>
                if (initialized) {
                        return;
                }
+
+               LttngUstAgentLogger.log(AbstractLttngAgent.class, "Initializing Agent for domain: " + domain.name());
+
                String rootClientThreadName = "Root sessiond client started by agent: " + this.getClass().getSimpleName();
 
                rootSessiondClient = new LttngTcpSessiondClient(this, getDomain().value(), true);
@@ -174,6 +178,8 @@ public abstract class AbstractLttngAgent<T extends ILttngHandler>
         * Dispose the agent
         */
        private void dispose() {
+               LttngUstAgentLogger.log(AbstractLttngAgent.class, "Disposing Agent for domain: " + domain.name());
+
                /*
                 * Only called from a synchronized (registeredHandlers) block, should
                 * not need additional synchronization.
This page took 0.028299 seconds and 4 git commands to generate.