mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
improve logging
This commit is contained in:
@@ -37,6 +37,9 @@ import com.google.common.base.Strings;
|
|||||||
import com.google.common.collect.ImmutableMap;
|
import com.google.common.collect.ImmutableMap;
|
||||||
import com.google.common.collect.ImmutableMap.Builder;
|
import com.google.common.collect.ImmutableMap.Builder;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import org.sonatype.aether.repository.Authentication;
|
import org.sonatype.aether.repository.Authentication;
|
||||||
import org.sonatype.aether.repository.AuthenticationSelector;
|
import org.sonatype.aether.repository.AuthenticationSelector;
|
||||||
import org.sonatype.aether.repository.RemoteRepository;
|
import org.sonatype.aether.repository.RemoteRepository;
|
||||||
@@ -55,6 +58,14 @@ import java.util.Map;
|
|||||||
public class AetherAuthenticationSelector implements AuthenticationSelector
|
public class AetherAuthenticationSelector implements AuthenticationSelector
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the logger for AetherAuthenticationSelector
|
||||||
|
*/
|
||||||
|
private static final Logger logger =
|
||||||
|
LoggerFactory.getLogger(AetherAuthenticationSelector.class);
|
||||||
|
|
||||||
|
//~--- constructors ---------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs ...
|
* Constructs ...
|
||||||
*
|
*
|
||||||
@@ -102,6 +113,8 @@ public class AetherAuthenticationSelector implements AuthenticationSelector
|
|||||||
|
|
||||||
if (server != null)
|
if (server != null)
|
||||||
{
|
{
|
||||||
|
logger.info("use user {} for repository wiht id {}",
|
||||||
|
server.getUsername(), repository.getId());
|
||||||
authentication = new Authentication(server.getUsername(),
|
authentication = new Authentication(server.getUsername(),
|
||||||
server.getPassword());
|
server.getPassword());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ public class AetherDependencyResolver
|
|||||||
{
|
{
|
||||||
if (session == null)
|
if (session == null)
|
||||||
{
|
{
|
||||||
|
logger.info("create repository system session");
|
||||||
session = Aether.createRepositorySystemSession(system, localRepository,
|
session = Aether.createRepositorySystemSession(system, localRepository,
|
||||||
configuration, advancedPluginConfiguration);
|
configuration, advancedPluginConfiguration);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user