From 510867d718dbe95a1f8ff8c818dac5a848e4cde5 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Wed, 10 Oct 2007 23:24:38 +0000 Subject: [PATCH] [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 --- .../archiva/proxy/DefaultRepositoryProxyConnectors.java | 9 +++++---- 1 file 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