mirror of
https://github.com/apache/archiva.git
synced 2025-02-23 02:56:38 +00:00
fix logging
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1546485 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
02c469c710
commit
f303650541
@ -36,6 +36,7 @@
|
||||
import org.apache.archiva.scheduler.repository.model.RepositoryArchivaTaskScheduler;
|
||||
import org.apache.archiva.scheduler.repository.model.RepositoryTask;
|
||||
import org.apache.commons.lang.time.StopWatch;
|
||||
import org.quartz.JobDetail;
|
||||
import org.quartz.SchedulerException;
|
||||
import org.quartz.impl.JobDetailImpl;
|
||||
import org.quartz.impl.triggers.CronTriggerImpl;
|
||||
@ -140,8 +141,8 @@ public void startup()
|
||||
}
|
||||
catch ( MetadataRepositoryException e )
|
||||
{
|
||||
log.warn( "Unable to determine if a repository is already scanned, skipping initial scan: "
|
||||
+ e.getMessage(), e );
|
||||
log.warn( "Unable to determine if a repository is already scanned, skipping initial scan: {}",
|
||||
e.getMessage(), e );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -286,7 +287,7 @@ public void configurationEvent( ConfigurationEvent event )
|
||||
}
|
||||
catch ( SchedulerException e )
|
||||
{
|
||||
log.error( "error restarting job: " + REPOSITORY_JOB + ":" + repoConfig.getId() );
|
||||
log.error( "error restarting job: '{}' : '{}'", REPOSITORY_JOB, repoConfig.getId() );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -317,7 +318,7 @@ private synchronized void queueInitialRepoScan( ManagedRepositoryConfiguration r
|
||||
|
||||
if ( !queuedRepos.contains( repoId ) )
|
||||
{
|
||||
log.info( "Repository [" + repoId + "] is queued to be scanned as it hasn't been previously." );
|
||||
log.info( "Repository [{}] is queued to be scanned as it hasn't been previously.", repoId );
|
||||
|
||||
try
|
||||
{
|
||||
@ -326,7 +327,7 @@ private synchronized void queueInitialRepoScan( ManagedRepositoryConfiguration r
|
||||
}
|
||||
catch ( TaskQueueException e )
|
||||
{
|
||||
log.error( "Error occurred while queueing repository [" + repoId + "] task : " + e.getMessage() );
|
||||
log.error( "Error occurred while queueing repository [{}] task : {}", e.getMessage(), repoId );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -357,9 +358,8 @@ private synchronized void scheduleRepositoryJobs( ManagedRepositoryConfiguration
|
||||
}
|
||||
|
||||
// setup the unprocessed artifact job
|
||||
JobDetailImpl repositoryJob =
|
||||
new JobDetailImpl( REPOSITORY_JOB + ":" + repoConfig.getId(), REPOSITORY_SCAN_GROUP,
|
||||
RepositoryTaskJob.class );
|
||||
JobDetail repositoryJob = new JobDetailImpl( REPOSITORY_JOB + ":" + repoConfig.getId(), REPOSITORY_SCAN_GROUP,
|
||||
RepositoryTaskJob.class );
|
||||
|
||||
repositoryJob.getJobDataMap().put( TASK_QUEUE, repositoryScanningQueue );
|
||||
repositoryJob.getJobDataMap().put( TASK_REPOSITORY, repoConfig.getId() );
|
||||
@ -375,8 +375,9 @@ private synchronized void scheduleRepositoryJobs( ManagedRepositoryConfiguration
|
||||
}
|
||||
catch ( ParseException e )
|
||||
{
|
||||
log.error( "ParseException in repository scanning cron expression, disabling repository scanning for '"
|
||||
+ repoConfig.getId() + "': " + e.getMessage() );
|
||||
log.error(
|
||||
"ParseException in repository scanning cron expression, disabling repository scanning for '': {}",
|
||||
repoConfig.getId(), e.getMessage() );
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user