logs rewritted for performance

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1379485 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
skygo 2012-08-31 15:49:34 +00:00
parent dc75eb90ba
commit de6d5108af
1 changed files with 4 additions and 4 deletions

View File

@ -176,7 +176,7 @@ public class ArchivaMetadataCreationConsumer
} }
catch ( RepositoryStorageMetadataNotFoundException e ) catch ( RepositoryStorageMetadataNotFoundException e )
{ {
log.warn( "Missing or invalid POM for artifact:" + path + " (" + repoId + "); creating empty metadata" ); log.warn( "Missing or invalid POM for artifact:{} (repository:{}); creating empty metadata" , path, repoId );
versionMetadata = new ProjectVersionMetadata(); versionMetadata = new ProjectVersionMetadata();
versionMetadata.setId( projectVersion ); versionMetadata.setId( projectVersion );
@ -185,7 +185,7 @@ public class ArchivaMetadataCreationConsumer
} }
catch ( RepositoryStorageMetadataInvalidException e ) catch ( RepositoryStorageMetadataInvalidException e )
{ {
log.warn( "Error occurred resolving POM for artifact:" + path + "(" + repoId + "); message: " + e.getMessage() ); log.warn( "Error occurred resolving POM for artifact:{} (repository:{}); message: {}" , new Object[] { path, repoId, e.getMessage() } );
} }
// read the metadata and update it if it is newer or doesn't exist // read the metadata and update it if it is newer or doesn't exist
@ -202,12 +202,12 @@ public class ArchivaMetadataCreationConsumer
} }
catch ( MetadataRepositoryException e ) catch ( MetadataRepositoryException e )
{ {
log.warn( "Error occurred persisting metadata for artifact: " + path + "(" + repoId + "); message: " + e.getMessage(), e ); log.warn( "Error occurred persisting metadata for artifact:{} (repository:{}); message: {}" + e.getMessage(), new Object[] { path, repoId, e.getMessage() }, e );
repositorySession.revert(); repositorySession.revert();
} }
catch ( RepositoryStorageRuntimeException e ) catch ( RepositoryStorageRuntimeException e )
{ {
log.warn( "Error occurred persisting metadata for artifact: " + path + "(" + repoId + "); message: " + e.getMessage(), e ); log.warn( "Error occurred persisting metadata for artifact:{} (repository:{}); message: {}" + e.getMessage(), new Object[] { path, repoId, e.getMessage() }, e );
repositorySession.revert(); repositorySession.revert();
} }
finally finally