PR: MPLINKCHECK-14

only show stack trace when in debug mode


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115668 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett committed 2004-07-05 21:03:37 +00:00
1 parent e0747f2936
commit 7e1006740f
1 file changed
+3 -2
@@ -30,7 +30,7 @@ import org.apache.commons.logging.LogFactory;
/**
* Checks links which are normal URLs
* @author <a href="mailto:bwalding@apache.org">Ben Walding</a>
* @version $Id: HTTPLinkValidator.java,v 1.11 2004/05/01 01:46:09 brett Exp $
* @version $Id: HTTPLinkValidator.java,v 1.12 2004/07/05 21:03:37 brett Exp $
*/
public class HTTPLinkValidator implements LinkValidator
{
@@ -151,7 +151,8 @@ public class HTTPLinkValidator implements LinkValidator
}
catch (Exception e)
{
LOG.warn("Error validating " + link, e);
LOG.warn("Error validating " + link + ": " + e);
LOG.debug("Exception was", e);
}
return hm;
}