From 8b06766661b604b88577fcc47c5471ac458fcd0c Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Fri, 31 Oct 2014 15:33:59 -0400 Subject: [PATCH] Fix: Warn when log4j version is too old Signed-off-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- 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 47b45197..f7e1e386 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.34.1