Simplefied error output generated when the -v switch is not used.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 10 Sep 2002 16:40:04 +0000 (16:40 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 10 Sep 2002 16:40:04 +0000 (16:40 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@289 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/utils/ExtKeyTool.java

index 61cfc0f..1727bac 100755 (executable)
@@ -599,11 +599,12 @@ public class ExtKeyTool {
 
        protected void startLogger(Properties arguments) {
                Logger root = Logger.getRootLogger();
-               root.addAppender(new ConsoleAppender(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN)));
                if (arguments.getProperty("verbose", null) == null
                        || arguments.getProperty("verbose", null).equals("false")) {
+                       root.addAppender(new ConsoleAppender(new PatternLayout(PatternLayout.DEFAULT_CONVERSION_PATTERN)));
                        root.setLevel(Level.WARN);
                } else {
+                       root.addAppender(new ConsoleAppender(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN)));
                        root.setLevel(Level.DEBUG);
                }
        }