optimize use of debug

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1130088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-01 10:33:12 +00:00
parent 8a68012d12
commit 498a6c57cd
3 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ public class RepositoryScannerInstance
public void directoryWalkStep( int percentage, File file )
{
log.debug( "Walk Step: " + percentage + ", " + file );
log.debug( "Walk Step: {}, {}", percentage, file );
stats.increaseFileCount();
@ -184,7 +184,7 @@ public class RepositoryScannerInstance
*/
public void debug( String message )
{
log.debug( "Repository Scanner: " + message );
log.debug( "Repository Scanner: {}", message );
}
public ManagedRepositoryConfiguration getRepository()

View File

@ -55,7 +55,7 @@ public class ConsumerProcessFileClosure
String id = consumer.getId();
try
{
log.debug( "Sending to consumer: " + id );
log.debug( "Sending to consumer: {}", id );
long startTime = System.currentTimeMillis();
consumer.processFile( basefile.getRelativePath(), executeOnEntireRepo );

View File

@ -54,7 +54,7 @@ public class TriggerScanCompletedClosure
{
RepositoryContentConsumer consumer = (RepositoryContentConsumer) input;
consumer.completeScan( executeOnEntireRepo );
log.debug( "Consumer [" + consumer.getId() + "] completed for repository [" + repository.getId() + "]" );
log.debug( "Consumer [{}] completed for repository [{}]", consumer.getId(), repository.getId() );
}
}
}