From e1357790eb9dbd638a9f35a5c5e4cea237957f2f Mon Sep 17 00:00:00 2001 From: Alexandre Montplaisir Date: Thu, 11 Feb 2016 19:45:47 -0500 Subject: [PATCH] Add some logging to the AbstractLttngAgent Signed-off-by: Alexandre Montplaisir Signed-off-by: Mathieu Desnoyers --- .../org/lttng/ust/agent/AbstractLttngAgent.java | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.34.1