From: Alexandre Montplaisir Date: Fri, 12 Feb 2016 00:45:47 +0000 (-0500) Subject: Add some logging to the AbstractLttngAgent X-Git-Tag: v2.8.0-rc1~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e1357790eb9dbd638a9f35a5c5e4cea237957f2f;p=lttng-ust.git Add some logging to the AbstractLttngAgent Signed-off-by: Alexandre Montplaisir Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java index f8ad187b..3c64e180 100644 --- a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java +++ b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java @@ -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 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 * 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.