optimize use of debug

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1130091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-01 10:38:27 +00:00
parent ae34ad83a9
commit aaebb5d534
2 changed files with 5 additions and 5 deletions

View File

@ -217,12 +217,12 @@ public class MetadataUpdaterConsumer
if ( projectMetadata.exists() && ( projectMetadata.lastModified() >= this.scanStartTimestamp ) ) if ( projectMetadata.exists() && ( projectMetadata.lastModified() >= this.scanStartTimestamp ) )
{ {
// This metadata is up to date. skip it. // This metadata is up to date. skip it.
log.debug( "Skipping uptodate metadata: " + this.metadataTools.toPath( projectRef ) ); log.debug( "Skipping uptodate metadata: {}", this.metadataTools.toPath( projectRef ) );
return; return;
} }
metadataTools.updateMetadata( this.repository, projectRef ); metadataTools.updateMetadata( this.repository, projectRef );
log.debug( "Updated metadata: " + this.metadataTools.toPath( projectRef ) ); log.debug( "Updated metadata: {}", this.metadataTools.toPath( projectRef ) );
} }
catch ( LayoutException e ) catch ( LayoutException e )
{ {
@ -263,12 +263,12 @@ public class MetadataUpdaterConsumer
if ( projectMetadata.exists() && ( projectMetadata.lastModified() >= this.scanStartTimestamp ) ) if ( projectMetadata.exists() && ( projectMetadata.lastModified() >= this.scanStartTimestamp ) )
{ {
// This metadata is up to date. skip it. // This metadata is up to date. skip it.
log.debug( "Skipping uptodate metadata: " + this.metadataTools.toPath( versionRef ) ); log.debug( "Skipping uptodate metadata: {}", this.metadataTools.toPath( versionRef ) );
return; return;
} }
metadataTools.updateMetadata( this.repository, versionRef ); metadataTools.updateMetadata( this.repository, versionRef );
log.debug( "Updated metadata: " + this.metadataTools.toPath( versionRef ) ); log.debug( "Updated metadata: {}", this.metadataTools.toPath( versionRef ) );
} }
catch ( LayoutException e ) catch ( LayoutException e )
{ {

View File

@ -137,7 +137,7 @@ public class DaysOldRepositoryPurge
} }
catch ( LayoutException e ) catch ( LayoutException e )
{ {
log.debug( "Not processing file that is not an artifact: " + e.getMessage() ); log.debug( "Not processing file that is not an artifact: {}", e.getMessage() );
} }
} }