Setup the LogService listener first thing in the activator to not miss log entries during startup

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1067144 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/Activator.java b/scr/src/main/java/org/apache/felix/scr/impl/Activator.java
index 8cd8f70..32bce7a 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/Activator.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/Activator.java
@@ -53,7 +53,7 @@
     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 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 );