From: Christian Babeux Date: Fri, 31 Oct 2014 19:33:59 +0000 (-0400) Subject: Fix: Warn when log4j version is too old X-Git-Tag: v2.7.0-rc1~79 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0bc36e5dfad79b745fe45c4176b8474ab69cf758;p=lttng-ust.git Fix: Warn when log4j version is too old Signed-off-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- 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 */