avoid too much log when an artifact is not available in a remote repository

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1325498 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-04-12 20:41:52 +00:00
parent 11f78cf148
commit c0ec48e2a8
1 changed files with 8 additions and 1 deletions

View File

@ -134,10 +134,17 @@ public class RepositoryModelResolver
break;
}
}
catch ( ResourceDoesNotExistException e )
{
log.info( "An exception was caught while attempting to retrieve model '" + model.getAbsolutePath()
+ "' from remote repository '" + remoteRepository.getId() + "'.Reason:"
+ e.getMessage() );
}
catch ( Exception e )
{
log.warn( "An exception was caught while attempting to retrieve model '" + model.getAbsolutePath()
+ "' from remote repository '" + remoteRepository.getId() + "'.", e );
+ "' from remote repository '" + remoteRepository.getId() + "'.", e.getMessage() );
continue;
}
}