[MNG-5883] Silence unnecessary legacy local repository warning

o Updated to decrease logging level from 'warning' to 'info'.
This commit is contained in:
Christian Schulte 2016-01-25 02:40:03 +01:00
parent 6b31c4a556
commit 1e2a80eced
1 changed files with 4 additions and 4 deletions

View File

@ -132,16 +132,16 @@ public class DefaultRepositorySystemSessionFactory
if ( request.isUseLegacyLocalRepository() )
{
logger.warn( "Disabling enhanced local repository: using legacy is strongly discouraged to ensure"
+ " build reproducibility." );
try
{
session.setLocalRepositoryManager( simpleLocalRepoMgrFactory.newInstance( session, localRepo ) );
logger.info( "Disabling enhanced local repository: using legacy is strongly discouraged to ensure"
+ " build reproducibility." );
}
catch ( NoLocalRepositoryManagerException e )
{
logger.warn( "Failed to configure legacy local repository: back to default" );
logger.error( "Failed to configure legacy local repository: falling back to default" );
session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( session, localRepo ) );
}
}