continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1333296 - in /continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge: controller/RepositoryPurgeController.java task/PurgeTaskExecutor.java
Date Thu, 03 May 2012 02:37:35 GMT
Author: ctan
Date: Thu May  3 02:37:35 2012
New Revision: 1333296

URL: http://svn.apache.org/viewvc?rev=1333296&view=rev
Log:
reduce unnecessary logs

Modified:
    continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/controller/RepositoryPurgeController.java
    continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/task/PurgeTaskExecutor.java

Modified: continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/controller/RepositoryPurgeController.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/controller/RepositoryPurgeController.java?rev=1333296&r1=1333295&r2=1333296&view=diff
==============================================================================
--- continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/controller/RepositoryPurgeController.java
(original)
+++ continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/controller/RepositoryPurgeController.java
Thu May  3 02:37:35 2012
@@ -98,12 +98,15 @@ public class RepositoryPurgeController
     public void doPurge( AbstractPurgeConfiguration purgeConfig )
     {
         RepositoryPurgeConfiguration repoPurge = (RepositoryPurgeConfiguration) purgeConfig;
+        log.info( "--- Start: Purging repository [{}] {} ---", repoPurge.getRepository().getId(),

+                  repoPurge.getRepository().getLocation() );
         doPurge( repoPurge.getRepository().getLocation() );
+        log.info( "--- End: Purging repository [{}] {} ---", repoPurge.getRepository().getId(),
+                  repoPurge.getRepository().getLocation() );
     }
     
     public void doPurge( String path )
     {
-        log.info( "--- Start: Purging repository path '{}'---", path );
         try
         {
             if ( deleteReleasedSnapshots )
@@ -117,6 +120,5 @@ public class RepositoryPurgeController
         {
             log.error( e.getMessage(), e );
         }
-        log.info( "--- End: Purging repository path '{}'---", path );
     }
 }
\ No newline at end of file

Modified: continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/task/PurgeTaskExecutor.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/task/PurgeTaskExecutor.java?rev=1333296&r1=1333295&r2=1333296&view=diff
==============================================================================
--- continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/task/PurgeTaskExecutor.java
(original)
+++ continuum/trunk/continuum-purge/src/main/java/org/apache/continuum/purge/task/PurgeTaskExecutor.java
Thu May  3 02:37:35 2012
@@ -43,7 +43,7 @@ import org.codehaus.plexus.taskqueue.exe
  */
 public class PurgeTaskExecutor
     implements TaskExecutor, Contextualizable
-{
+{                             
     /**
      * @plexus.requirement
      */
@@ -85,7 +85,7 @@ public class PurgeTaskExecutor
 
                 if ( repoPurge.isDeleteAll() )
                 {
-                    purgeController.doPurge( repository.getLocation() );
+                    purgeController.doPurge( repoPurge );
                 }
                 else
                 {



Mime
View raw message