summaryrefslogtreecommitdiffstats
path: root/archiva-core
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2006-09-30 12:42:11 +0000
committerBrett Porter <brett@apache.org>2006-09-30 12:42:11 +0000
commit28dc3238cbfb87c9c1955cbab401f524a28c5c46 (patch)
treee5812d35e03397d45b1d1a7491aea0ef431b89d5 /archiva-core
parent6b21148ea3ac746653eb9eb3715c138faf88b8fb (diff)
downloadarchiva-28dc3238cbfb87c9c1955cbab401f524a28c5c46.tar.gz
archiva-28dc3238cbfb87c9c1955cbab401f524a28c5c46.zip
[MRM-187] improve proxy logging
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@451590 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-core')
-rw-r--r--archiva-core/src/main/java/org/apache/maven/archiva/proxy/DefaultProxyManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/archiva-core/src/main/java/org/apache/maven/archiva/proxy/DefaultProxyManager.java b/archiva-core/src/main/java/org/apache/maven/archiva/proxy/DefaultProxyManager.java
index 9fc69353d..fbd301829 100644
--- a/archiva-core/src/main/java/org/apache/maven/archiva/proxy/DefaultProxyManager.java
+++ b/archiva-core/src/main/java/org/apache/maven/archiva/proxy/DefaultProxyManager.java
@@ -26,6 +26,7 @@ import org.apache.maven.archiva.configuration.RepositoryConfiguration;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.wagon.ResourceDoesNotExistException;
import org.apache.maven.wagon.proxy.ProxyInfo;
+import org.codehaus.plexus.logging.AbstractLogEnabled;
import org.codehaus.plexus.util.StringUtils;
import java.io.File;
@@ -44,6 +45,7 @@ import java.util.Map;
* @plexus.component instantiation-strategy="per-lookup"
*/
public class DefaultProxyManager
+ extends AbstractLogEnabled
implements ProxyManager
{
/**
@@ -95,7 +97,9 @@ public class DefaultProxyManager
}
else
{
- repositoryPath = repositoryPath.substring( proxyGroup.getManagedRepository().getId().length() + 2 );
+ String id = proxyGroup.getManagedRepository().getId();
+ getLogger().debug( "requesting " + repositoryPath + " from repository '" + id + "'" );
+ repositoryPath = repositoryPath.substring( id.length() + 2 );
}
return requestHandler.get( repositoryPath, proxyGroup.getProxiedRepositories(),