From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] [PATCH lttng-ust] Fix: Warn when log4j version is too old
Date: Fri, 31 Oct 2014 19:39:33 +0000 (UTC) [thread overview]
Message-ID: <1895116222.5744.1414784373443.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <1414784039-11359-1-git-send-email-christian.babeux@efficios.com>
Merged, thanks!
Mathieu
----- Original Message -----
> From: "Christian Babeux" <christian.babeux@efficios.com>
> To: lttng-dev at lists.lttng.org
> Cc: "mathieu desnoyers" <mathieu.desnoyers at efficios.com>, "Christian Babeux" <christian.babeux at efficios.com>
> Sent: Friday, October 31, 2014 3:33:59 PM
> Subject: [PATCH lttng-ust] Fix: Warn when log4j version is too old
>
> 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
>
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
prev parent reply other threads:[~2014-10-31 19:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-31 19:33 Christian Babeux
2014-10-31 19:39 ` Mathieu Desnoyers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1895116222.5744.1414784373443.JavaMail.zimbra@efficios.com \
--to=mathieu.desnoyers@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox