[MRM-461] Warning message for non existent resources should include what resource it failed to locate.

Added url + resource path to log message.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@583641 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2007-10-10 23:24:38 +00:00
parent c88017fe32
commit 510867d718
1 changed files with 5 additions and 4 deletions

View File

@ -559,8 +559,7 @@ public class DefaultRepositoryProxyConnectors
}
else
{
getLogger().debug(
"Retrieving " + remotePath + " from " + remoteRepository.getRepository().getName()
getLogger().debug( "Retrieving " + remotePath + " from " + remoteRepository.getRepository().getName()
+ " if updated" );
success = wagon.getIfNewer( remotePath, temp, localFile.lastModified() );
if ( !success )
@ -580,12 +579,14 @@ public class DefaultRepositoryProxyConnectors
}
catch ( ResourceDoesNotExistException e )
{
getLogger().debug( "Resource does not exist: " + e.getMessage() );
getLogger().debug( "Resource [" + remoteRepository.getURL() + "/" + remotePath + "] does not exist: "
+ e.getMessage() );
throw e;
}
catch ( WagonException e )
{
getLogger().warn( "Download failure:" + e.getMessage(), e );
getLogger().warn( "Download failure on resource [" + remoteRepository.getURL() + "/" + remotePath + "]:"
+ e.getMessage(), e );
throw e;
}
finally