mirror of https://github.com/apache/archiva.git
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
This commit is contained in:
parent
458dd00004
commit
b43aff915e
|
@ -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;
|
||||
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue