o Added more debug logging

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750471 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-03-05 15:06:27 +00:00
parent 4e402106f2
commit 013f3adab5
1 changed files with 8 additions and 0 deletions

View File

@ -125,6 +125,14 @@ public boolean isUpdateRequired( RepositoryMetadata metadata, ArtifactRepository
// artifacts available.
ArtifactRepositoryPolicy policy = metadata.isSnapshot() ? repository.getSnapshots() : repository.getReleases();
if ( getLogger().isDebugEnabled() )
{
getLogger().debug(
"Determining update check for " + metadata + " (" + file + ") from " + repository
+ " (snapshot = " + metadata.isSnapshot() + ", enabled = " + policy.isEnabled()
+ ")" );
}
if ( !policy.isEnabled() )
{
return false;