aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/database/MailManager.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/database/MailManager.java b/src/main/java/org/traccar/database/MailManager.java
index ac0db2d97..0c868e1fc 100644
--- a/src/main/java/org/traccar/database/MailManager.java
+++ b/src/main/java/org/traccar/database/MailManager.java
@@ -16,8 +16,6 @@
*/
package org.traccar.database;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.traccar.config.Config;
import org.traccar.model.User;
import org.traccar.notification.PropertiesProvider;
@@ -38,8 +36,6 @@ import java.util.Properties;
public final class MailManager {
- private static final Logger LOGGER = LoggerFactory.getLogger(MailManager.class);
-
private final Config config;
private final StatisticsManager statisticsManager;
@@ -115,8 +111,7 @@ public final class MailManager {
properties = getProperties(new PropertiesProvider(config));
}
if (!properties.containsKey("mail.smtp.host")) {
- LOGGER.warn("No SMTP configuration found");
- return;
+ throw new RuntimeException("No SMTP configuration found");
}
Session session = Session.getInstance(properties);