Reduced logging when loglevel is "download-only" or "quiet". Might fix IVY-1004,...
authorMaarten Coene <maartenc@apache.org>
Tue, 10 Feb 2009 22:46:45 +0000 (22:46 +0000)
committerMaarten Coene <maartenc@apache.org>
Tue, 10 Feb 2009 22:46:45 +0000 (22:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@743146 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/ivy/core/resolve/IvyNode.java

index cd361d6..5a5a9d5 100644 (file)
@@ -216,7 +216,8 @@ public class IvyNode implements Comparable {
                             if (!settings.getVersionMatcher().isDynamic(getId())) {
                                 log += " (forced)";
                             }
-                            if (settings.logResolvedRevision()) {
+                            if (settings.logResolvedRevision()
+                                    && LogOptions.LOG_DEFAULT.equals(getData().getOptions().getLog())) {
                                 Message.info(log);
                             } else {
                                 Message.verbose(log);
@@ -278,7 +279,8 @@ public class IvyNode implements Comparable {
         
         data.replaceNode(getId(), resolved, rootModuleConf); // this actually discards the node
 
-        if (settings.logResolvedRevision()) {
+        if (settings.logResolvedRevision()
+                && LogOptions.LOG_DEFAULT.equals(getData().getOptions().getLog())) {
             Message.info("\t[" + module.getId().getRevision() + "] " + getId());
         } else {
             Message.verbose("\t[" + module.getId().getRevision() + "] " + getId());
@@ -384,7 +386,7 @@ public class IvyNode implements Comparable {
                 if (c == null) {
                     confsToFetch.remove(conf);
                     if (isConfRequiredByMergedUsageOnly(rootModuleConf, conf)) {
-                        Message.info(
+                        Message.verbose(
                             "configuration required by evicted revision is not available in "
                             + "selected revision. skipping " + conf + " in " + this);
                     } else if (!conf.equals(confs[i])) {
@@ -401,7 +403,7 @@ public class IvyNode implements Comparable {
                         && c.getVisibility() != Configuration.Visibility.PUBLIC) {
                     confsToFetch.remove(conf);
                     if (isConfRequiredByMergedUsageOnly(rootModuleConf, conf)) {
-                        Message.info(
+                        Message.verbose(
                             "configuration required by evicted revision is not visible in "
                             + "selected revision. skipping " + conf + " in " + this);
                     } else {