felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1067144 - /felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/Activator.java
Date Fri, 04 Feb 2011 10:49:51 GMT
Author: fmeschbe
Date: Fri Feb  4 10:49:51 2011
New Revision: 1067144

URL: http://svn.apache.org/viewvc?rev=1067144&view=rev
Log:
Setup the LogService listener first thing in the activator to not miss log entries during
startup

Modified:
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/Activator.java

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/Activator.java?rev=1067144&r1=1067143&r2=1067144&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/Activator.java (original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/Activator.java Fri Feb  4 10:49:51
2011
@@ -53,7 +53,7 @@ public class Activator implements Bundle
     private ScrConfiguration m_configuration;
 
     // Flag that sets error messages
-    private static int m_logLevel = LogService.LOG_ERROR;
+    private static int m_logLevel = LogService.LOG_DEBUG;
 
     // this bundle's context
     private static BundleContext m_context;
@@ -87,13 +87,15 @@ public class Activator implements Bundle
     public void start( BundleContext context ) throws Exception
     {
         m_context = context;
-        m_componentBundles = new HashMap();
-        m_componentRegistry = createComponentRegistry( context);
 
         // require the log service
         m_logService = new ServiceTracker( context, LOGSERVICE_CLASS, null );
         m_logService.open();
 
+        // prepare component registry
+        m_componentBundles = new HashMap();
+        m_componentRegistry = createComponentRegistry( context);
+
         // get the configuration
         m_configuration = new ScrConfiguration( context );
 



Mime
View raw message