From 1180b480ff055476d6d96b153ef58e3da24511f0 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 24 Nov 2016 15:17:59 +0100 Subject: [PATCH] #31 - Removed obsolete code from BootShim. --- .../springframework/data/release/BootShim.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/release-tools/src/main/java/org/springframework/data/release/BootShim.java b/release-tools/src/main/java/org/springframework/data/release/BootShim.java index 8628bf0..aec0a2c 100644 --- a/release-tools/src/main/java/org/springframework/data/release/BootShim.java +++ b/release-tools/src/main/java/org/springframework/data/release/BootShim.java @@ -1,8 +1,6 @@ package org.springframework.data.release; import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.beans.factory.support.DefaultListableBeanFactory; @@ -16,11 +14,10 @@ import org.springframework.shell.ShellException; import org.springframework.shell.SimpleShellCommandLineOptions; import org.springframework.shell.core.ExitShellRequest; import org.springframework.shell.core.JLineShellComponent; -import org.springframework.shell.support.logging.HandlerUtils; import org.springframework.util.StopWatch; public class BootShim { - private static BootShim bootstrap; + private static StopWatch sw = new StopWatch("Spring Shell"); private static CommandLine commandLine; private ConfigurableApplicationContext ctx; @@ -67,16 +64,6 @@ public class BootShim { } else { bf.registerBeanDefinition(clazz.getSimpleName(), rbd); } - - } - - private void setupLogging() { - Logger rootLogger = Logger.getLogger(""); - HandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE); - Logger sfwLogger = Logger.getLogger("org.springframework"); - sfwLogger.setLevel(Level.WARNING); - Logger rooLogger = Logger.getLogger("org.springframework.shell"); - rooLogger.setLevel(Level.FINE); } public ExitShellRequest run() {