You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by jc...@apache.org on 2006/12/14 19:37:40 UTC

svn commit: r487298 - /directory/sandbox/jconlon/osgi-apacheds/core-osgi/src/main/java/org/apache/directory/osgi/backend/InitialContextFactoryImpl.java

Author: jconlon
Date: Thu Dec 14 10:37:39 2006
New Revision: 487298

URL: http://svn.apache.org/viewvc?view=rev&rev=487298
Log:
Clarified logging

Modified:
    directory/sandbox/jconlon/osgi-apacheds/core-osgi/src/main/java/org/apache/directory/osgi/backend/InitialContextFactoryImpl.java

Modified: directory/sandbox/jconlon/osgi-apacheds/core-osgi/src/main/java/org/apache/directory/osgi/backend/InitialContextFactoryImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/jconlon/osgi-apacheds/core-osgi/src/main/java/org/apache/directory/osgi/backend/InitialContextFactoryImpl.java?view=diff&rev=487298&r1=487297&r2=487298
==============================================================================
--- directory/sandbox/jconlon/osgi-apacheds/core-osgi/src/main/java/org/apache/directory/osgi/backend/InitialContextFactoryImpl.java (original)
+++ directory/sandbox/jconlon/osgi-apacheds/core-osgi/src/main/java/org/apache/directory/osgi/backend/InitialContextFactoryImpl.java Thu Dec 14 10:37:39 2006
@@ -49,6 +49,7 @@
  */
 public class InitialContextFactoryImpl implements InitialContextFactory
 {
+    private static final String IMPL_NAME = "ApacheDS Backend Store";
     private static final Logger log = LoggerFactory.getLogger( InitialContextFactoryImpl.class );
     private final Map<String, String> immutableProperties;
     private final BackendStartupConfiguration cfg;
@@ -90,14 +91,14 @@
         }
         catch ( NamingException e1 )
         {
-            log.error( "Failed to start the server.", e1 );
+            log.error( "Failed to start {}.",IMPL_NAME, e1 );
             return;
         }
 
         hasStarted = true;
         if ( log.isInfoEnabled() )
         {
-            log.info( "server: started in {} milliseconds", ( System.currentTimeMillis() - startTime ) + "" );
+            log.info( "{} offering an InitialContextFactory Service: started in {} milliseconds",IMPL_NAME, ( System.currentTimeMillis() - startTime ) );
         }
         if ( cfg.getSynchPeriodMillis() > 0 )
         {
@@ -113,11 +114,11 @@
             };
 
             exec.scheduleAtFixedRate( command, 10, cfg.getSynchPeriodMillis(), TimeUnit.MILLISECONDS );
-            log.info( "syncing server: scheduled for {} milliseconds", cfg.getSynchPeriodMillis() );
+            log.debug( "Background task to synchronize data on the backend was scheduled to periodically run every {} milliseconds.", cfg.getSynchPeriodMillis() );
         }
         else
         {
-            log.info( "syncing server: not scheduled" );
+            log.debug( "Background task to synchronize data on the backend was not scheduled." );
         }
     }