archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joak...@apache.org
Subject svn commit: r583641 - /maven/archiva/trunk/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java
Date Wed, 10 Oct 2007 23:24:38 GMT
Author: joakime
Date: Wed Oct 10 16:24:38 2007
New Revision: 583641

URL: http://svn.apache.org/viewvc?rev=583641&view=rev
Log:
[MRM-461] Warning message for non existent resources should include what resource it failed
to locate.
Added url + resource path to log message.

Modified:
    maven/archiva/trunk/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java

Modified: maven/archiva/trunk/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java?rev=583641&r1=583640&r2=583641&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java
Wed Oct 10 16:24:38 2007
@@ -559,8 +559,7 @@
             }
             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 @@
         }
         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



Mime
View raw message