Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] [PATCH lttng-ust] Fix: Warn when log4j version is too old
@ 2014-10-31 19:33 Christian Babeux
  2014-10-31 19:39 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Babeux @ 2014-10-31 19:33 UTC (permalink / raw)


Signed-off-by: Christian Babeux <christian.babeux at efficios.com>
---
 liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngAgent.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngAgent.java b/liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngAgent.java
index 47b4519..f7e1e38 100644
--- a/liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngAgent.java
+++ b/liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngAgent.java
@@ -119,6 +119,7 @@ public class LTTngAgent {
 		try {
 			logging.getDeclaredMethod("getTimeStamp");
 		} catch (NoSuchMethodException e) {
+			System.err.println("Warning: The loaded log4j library is too old. Log4j tracing with LTTng will be disabled.");
 			return false;
 		} catch (NullPointerException e) {
 			/* Should never happen */
-- 
2.1.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-31 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-31 19:33 [lttng-dev] [PATCH lttng-ust] Fix: Warn when log4j version is too old Christian Babeux
2014-10-31 19:39 ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox