From b4b3435ecce4606416949432e6c5454b3b174c37 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Wed, 18 Aug 2004 15:51:47 +0000 Subject: [PATCH] re PR libgcj/17079 ([PATCH] Log messages whose logging level is equal to the threshold discarded by java.util.logging.Handler) 2004-08-18 Bryce McKinlay PR libgcj/17079 * java/util/logging/Handler.java (isLoggable): Accept record if its log level equals the threshold level. From Robin Green. From-SVN: r86187 --- libjava/ChangeLog | 6 ++++++ libjava/java/util/logging/Handler.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0fa156d48d5..4a91794ee3e 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2004-08-18 Bryce McKinlay + + PR libgcj/17079 + * java/util/logging/Handler.java (isLoggable): Accept record if its + log level equals the threshold level. From Robin Green. + 2004-08-18 David Daney * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend diff --git a/libjava/java/util/logging/Handler.java b/libjava/java/util/logging/Handler.java index f74ed0ec6c0..0caeafbe5f7 100644 --- a/libjava/java/util/logging/Handler.java +++ b/libjava/java/util/logging/Handler.java @@ -378,7 +378,7 @@ h.setFormatter(h.getFormatter()); */ public boolean isLoggable(LogRecord record) { - if (record.getLevel().intValue() <= level.intValue()) + if (record.getLevel().intValue() < level.intValue()) return false; if (filter != null) -- 2.30.2