You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2024/12/29 12:07:48 UTC

(maven-changes-plugin) branch MCHANGES-458 created (now 3f7a370)

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

elharo pushed a change to branch MCHANGES-458
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git


      at 3f7a370  Prefer logger to System.out

This branch includes the following new commits:

     new 3f7a370  Prefer logger to System.out

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-changes-plugin) 01/01: Prefer logger to System.out

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch MCHANGES-458
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git

commit 3f7a37041c8d98cfeeed6e7a376082cd430a3c36
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sun Dec 29 07:07:36 2024 -0500

    Prefer logger to System.out
---
 .../changes/announcement/mailsender/ProjectJavamailMailSender.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/changes/announcement/mailsender/ProjectJavamailMailSender.java b/src/main/java/org/apache/maven/plugins/changes/announcement/mailsender/ProjectJavamailMailSender.java
index 99a137e..b158df4 100644
--- a/src/main/java/org/apache/maven/plugins/changes/announcement/mailsender/ProjectJavamailMailSender.java
+++ b/src/main/java/org/apache/maven/plugins/changes/announcement/mailsender/ProjectJavamailMailSender.java
@@ -50,7 +50,7 @@ public class ProjectJavamailMailSender extends AbstractMailSender {
 
     public void initialize() {
         if (StringUtils.isEmpty(getSmtpHost())) {
-            System.out.println("Error in configuration: Missing smtpHost.");
+            getLogger().error("Error in configuration: Missing smtpHost.");
         }
 
         if (getSmtpPort() == 0) {
@@ -85,7 +85,7 @@ public class ProjectJavamailMailSender extends AbstractMailSender {
     // ----------------------------------------------------------------------
     // MailSender Implementation
     // ----------------------------------------------------------------------
-
+    @Override
     public void send(MailMessage mail) throws MailSenderException {
         verify(mail);