aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-10-18 16:03:03 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-10-19 14:46:53 +0200
commit53456d83c5ae574edb5c4ed6dc145adbd52c9477 (patch)
tree7fa7d5b933654460850c676a9f0184f4010f9dc4
parent4f733b3e0b744ef756eb0d203b33aef001a4a355 (diff)
downloadsonarqube-53456d83c5ae574edb5c4ed6dc145adbd52c9477.tar.gz
sonarqube-53456d83c5ae574edb5c4ed6dc145adbd52c9477.zip
Change logging level of EmailNotificationChannel from INFO to DEBUG
-rw-r--r--plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/EmailNotificationChannel.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/EmailNotificationChannel.java b/plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/EmailNotificationChannel.java
index 6079b20228e..534a2d4aadc 100644
--- a/plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/EmailNotificationChannel.java
+++ b/plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/EmailNotificationChannel.java
@@ -96,7 +96,7 @@ public class EmailNotificationChannel extends NotificationChannel {
public void deliver(Notification notification, String username) {
User user = userFinder.findByLogin(username);
if (StringUtils.isBlank(user.getEmail())) {
- LOG.info("Email not defined for user: " + username);
+ LOG.debug("Email not defined for user: " + username);
return;
}
EmailMessage emailMessage = format(notification);
@@ -122,7 +122,7 @@ public class EmailNotificationChannel extends NotificationChannel {
*/
void deliver(EmailMessage emailMessage) {
if (StringUtils.isBlank(configuration.getSmtpHost())) {
- LOG.info("SMTP host was not configured - email will not be sent");
+ LOG.debug("SMTP host was not configured - email will not be sent");
return;
}
try {
@@ -138,7 +138,7 @@ public class EmailNotificationChannel extends NotificationChannel {
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
try {
- LOG.info("Sending email: {}", emailMessage);
+ LOG.debug("Sending email: {}", emailMessage);
String host = null;
try {
host = new URL(configuration.getServerBaseURL()).getHost();