diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-10-10 23:24:38 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-10-10 23:24:38 +0000 |
commit | 510867d718dbe95a1f8ff8c818dac5a848e4cde5 (patch) | |
tree | 283b3684df13253ae51ee4caa3e249c41a83d3a1 | |
parent | c88017fe32cbbbd75768a72257052ecc0a618c77 (diff) | |
download | archiva-510867d718dbe95a1f8ff8c818dac5a848e4cde5.tar.gz archiva-510867d718dbe95a1f8ff8c818dac5a848e4cde5.zip |
[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
-rw-r--r-- | archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java index 2143e0d4a..2f1cad9ae 100644 --- a/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java +++ b/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java @@ -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 |