From afa3b93e09d6624be7519f4a359054fa7e1a9222 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Thu, 5 Mar 2009 14:47:35 +0000 Subject: [PATCH] o Added more debug logging git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750468 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/artifact/manager/DefaultUpdateCheckManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultUpdateCheckManager.java b/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultUpdateCheckManager.java index c2f613b168..4a4a84ae32 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultUpdateCheckManager.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultUpdateCheckManager.java @@ -81,6 +81,13 @@ public class DefaultUpdateCheckManager { File file = artifact.getFile(); + if ( getLogger().isDebugEnabled() ) + { + getLogger().debug( + "Determining update check for " + artifact + " (" + file + ") from " + repository + + " (enabled = " + policy.isEnabled() + ")" ); + } + if ( !policy.isEnabled() ) { return false; @@ -260,6 +267,7 @@ public class DefaultUpdateCheckManager { if ( !touchfile.canRead() ) { + getLogger().debug( "Skipped unreadable touchfile " + touchfile + " for key " + key ); return null; }