geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r706698 - /geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/IvyFactoryBean.java
Date Tue, 21 Oct 2008 18:08:34 GMT
Author: jdillon
Date: Tue Oct 21 11:08:32 2008
New Revision: 706698

URL: http://svn.apache.org/viewvc?rev=706698&view=rev
Log:
Install the logger earlier to avoid turds in output stream

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/IvyFactoryBean.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/IvyFactoryBean.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/IvyFactoryBean.java?rev=706698&r1=706697&r2=706698&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/IvyFactoryBean.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/IvyFactoryBean.java
Tue Oct 21 11:08:32 2008
@@ -36,6 +36,10 @@
 public class IvyFactoryBean
     implements FactoryBean
 {
+    static {
+        Message.setDefaultLogger(new Slf4jMessageLogger());
+    }
+    
     private final Logger log = LoggerFactory.getLogger(getClass());
 
     private URL settingsUrl;
@@ -53,8 +57,6 @@
     }
 
     public Object getObject() throws Exception {
-        Message.setDefaultLogger(new Slf4jMessageLogger());
-        
         IvySettings settings = new IvySettings();
         URL url = getSettingsUrl();
         log.debug("Settings URL: {}", url);



Mime
View raw message