summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-proxy/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-02-05 16:28:34 +0000
committerOlivier Lamy <olamy@apache.org>2013-02-05 16:28:34 +0000
commitb43aff915e07bcb7d03371b6b56cbada45d4c3d1 (patch)
tree036c050f495c66114f2abc034f71453427752511 /archiva-modules/archiva-base/archiva-proxy/src
parent458dd00004c47183534b7f247d127cfe990a6516 (diff)
downloadarchiva-b43aff915e07bcb7d03371b6b56cbada45d4c3d1.tar.gz
archiva-b43aff915e07bcb7d03371b6b56cbada45d4c3d1.zip
add a marker to be able to debug this part without debugging all of this class
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1442649 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-proxy/src')
-rw-r--r--archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java31
1 files changed, 19 insertions, 12 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java
index 3e1587f59..188437187 100644
--- a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java
+++ b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java
@@ -75,6 +75,9 @@ import org.apache.maven.wagon.repository.Repository;
import org.apache.tools.ant.types.selectors.SelectorUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.slf4j.MarkerFactory;
+import org.slf4j.helpers.BasicMarker;
+import org.slf4j.helpers.BasicMarkerFactory;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
@@ -98,7 +101,7 @@ import java.util.concurrent.ConcurrentHashMap;
* @todo exception handling needs work - "not modified" is not really an exceptional case, and it has more layers than
* your average brown onion
*/
-@Service ( "repositoryProxyConnectors#default" )
+@Service("repositoryProxyConnectors#default")
public class DefaultRepositoryProxyConnectors
implements RepositoryProxyConnectors, RegistryListener
{
@@ -108,21 +111,21 @@ public class DefaultRepositoryProxyConnectors
*
*/
@Inject
- @Named ( value = "archivaConfiguration#default" )
+ @Named(value = "archivaConfiguration#default")
private ArchivaConfiguration archivaConfiguration;
/**
*
*/
@Inject
- @Named ( value = "repositoryContentFactory#default" )
+ @Named(value = "repositoryContentFactory#default")
private RepositoryContentFactory repositoryFactory;
/**
*
*/
@Inject
- @Named ( value = "metadataTools#default" )
+ @Named(value = "metadataTools#default")
private MetadataTools metadataTools;
/**
@@ -163,7 +166,7 @@ public class DefaultRepositoryProxyConnectors
*
*/
@Inject
- @Named ( value = "archivaTaskScheduler#repository" )
+ @Named(value = "archivaTaskScheduler#repository")
private ArchivaTaskScheduler scheduler;
@Inject
@@ -177,7 +180,7 @@ public class DefaultRepositoryProxyConnectors
}
- @SuppressWarnings ( "unchecked" )
+ @SuppressWarnings("unchecked")
private void initConnectorsAndNetworkProxies()
{
@@ -447,15 +450,19 @@ public class DefaultRepositoryProxyConnectors
{
log.warn(
"Transfer error from repository \"" + targetRepository.getRepository().getId() + "\" for resource "
- + path + ", continuing to next repository. Error message: " + e.getMessage() );
- log.debug( "Full stack trace", e );
+ + path + ", continuing to next repository. Error message: {}", e.getMessage() );
+ log.debug( MarkerFactory.getDetachedMarker( "transfer.error" ),
+ "Transfer error from repository \"" + targetRepository.getRepository().getId()
+ + "\" for resource " + path + ", continuing to next repository. Error message: {}",
+ e.getMessage(), e );
}
catch ( RepositoryAdminException e )
{
- log.warn(
- "Transfer error from repository \"" + targetRepository.getRepository().getId() + "\" for resource "
- + path + ", continuing to next repository. Error message: " + e.getMessage() );
- log.debug( "Full stack trace", e );
+ log.debug( MarkerFactory.getDetachedMarker( "transfer.error" ),
+ "Transfer error from repository \"" + targetRepository.getRepository().getId()
+ + "\" for resource " + path + ", continuing to next repository. Error message: {}",
+ e.getMessage(), e );
+ log.debug( MarkerFactory.getDetachedMarker( "transfer.error" ), "Full stack trace", e );
}
}