This is an automated email from the ASF dual-hosted git repository.

bodewig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 0aca73974 loadresource might log warnings even though quiet was set to 
true
0aca73974 is described below

commit 0aca73974a1f03afc3f985a4beb94a5cd26e6bcf
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sat Nov 19 13:25:44 2022 +0100

    loadresource might log warnings even though quiet was set to true
    
    https://bz.apache.org/bugzilla/show_bug.cgi?id=65647
---
 WHATSNEW                                                 | 3 +++
 src/main/org/apache/tools/ant/taskdefs/LoadResource.java | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/WHATSNEW b/WHATSNEW
index ca067e3c3..c5a83128b 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -44,6 +44,9 @@ Fixed bugs:
    NUL rather than the first.
    Github Pull Request #194
 
+ * loadresource might log warnings even though quiet was set to true
+   Bugzilla Report 65647
+
 Other changes:
 --------------
 
diff --git a/src/main/org/apache/tools/ant/taskdefs/LoadResource.java 
b/src/main/org/apache/tools/ant/taskdefs/LoadResource.java
index a9e4c629b..41f5d351f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/LoadResource.java
+++ b/src/main/org/apache/tools/ant/taskdefs/LoadResource.java
@@ -141,7 +141,7 @@ public class LoadResource extends Task {
             if (failOnError) {
                 throw new BuildException(message);
             }
-            log(message, quiet ? Project.MSG_WARN : Project.MSG_ERR);
+            log(message, quiet ? Project.MSG_VERBOSE : Project.MSG_ERR);
             return;
         }
 

Reply via email to