From 874bf4ef4c95083b8f8cfa7ded0a826be91fd72c Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 25 Oct 2013 15:37:17 -0500 Subject: [PATCH] Initialize Logger instances to the 'INFO' level by default ... otherwise, logging would throw an exception when trying to determine whether the current level allows the message to be logged. Signed-off-by: Johannes Schindelin --- classpath/java/util/logging/Logger.java | 1 + 1 file changed, 1 insertion(+) diff --git a/classpath/java/util/logging/Logger.java b/classpath/java/util/logging/Logger.java index 62ac923efc..ae60507a4e 100644 --- a/classpath/java/util/logging/Logger.java +++ b/classpath/java/util/logging/Logger.java @@ -32,6 +32,7 @@ public class Logger { if (name.equals("")) return rootLogger; Logger logger = new Logger(name); logger.parent = rootLogger; + logger.setLevel(Level.INFO); return logger; }