]> source.dussan.org Git - archiva.git/commitdiff
use of logger instead serr
authorskygo <skygo@unknown>
Tue, 28 May 2013 16:47:45 +0000 (16:47 +0000)
committerskygo <skygo@unknown>
Tue, 28 May 2013 16:47:45 +0000 (16:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-MRM-1756@1487002 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPluginsServices.java

index 1896f4597bf143f2cb818a08fb1790db5ad18a1b..bfa6e752dbceff0fb4664c3023284ccb59712bf5 100644 (file)
@@ -26,6 +26,8 @@ import org.springframework.stereotype.Service;
 
 import javax.inject.Inject;
 import org.apache.archiva.rest.api.services.PluginsService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.context.ApplicationContext;
 import org.springframework.core.io.Resource;
 
@@ -40,17 +42,17 @@ public class DefaultPluginsServices
     private List<String> repositoryType = new ArrayList<String>();
     private List<String> adminFeatures = new ArrayList<String>();
     private ApplicationContext appCont;
+    private Logger log = LoggerFactory.getLogger( getClass() );
 
     @Inject
     public DefaultPluginsServices( ApplicationContext applicationContext )
     {
-        System.err.println( "appCont" );
         this.appCont = applicationContext;
     }
 
     private void feed( List<String> repository, String key ) throws ArchivaRestServiceException
     {
-        System.err.println( "feeed" );
+        log.info( "Feeding: {}", key );
         repository.clear();
         Resource[] xmlResources;
         try
@@ -86,7 +88,7 @@ public class DefaultPluginsServices
         {
             sb.append( repoType ).append( "|" );
         }
-        System.err.println( "sb" + sb.toString() );
+        log.debug( "getAdminPlugins: {}", sb.toString() );
         if ( sb.length() > 1 )
         {
             return sb.substring( 0, sb.length() - 1 );