Fix: Warn when log4j version is too old
authorChristian Babeux <christian.babeux@efficios.com>
Fri, 31 Oct 2014 19:33:59 +0000 (15:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 31 Oct 2014 19:39:17 +0000 (15:39 -0400)
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngAgent.java

index 47b45197ad8c1584594b01c69c24d700130972bf..f7e1e386be9bd5a56e0016ef235081490782c299 100644 (file)
@@ -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 */
This page took 0.02494 seconds and 4 git commands to generate.