aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/mail
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-31 15:03:48 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-31 15:03:48 -0800
commitbcf1daf348c9a83892b1b0e214052327529d7064 (patch)
tree9e6b4c5118b796f871805922b0fe7819c929781b /src/main/java/org/traccar/mail
parentf4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a (diff)
downloadtrackermap-server-bcf1daf348c9a83892b1b0e214052327529d7064.tar.gz
trackermap-server-bcf1daf348c9a83892b1b0e214052327529d7064.tar.bz2
trackermap-server-bcf1daf348c9a83892b1b0e214052327529d7064.zip
Improve test emails
Diffstat (limited to 'src/main/java/org/traccar/mail')
-rw-r--r--src/main/java/org/traccar/mail/LogMailManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/mail/LogMailManager.java b/src/main/java/org/traccar/mail/LogMailManager.java
index b6b912d6c..4af68809c 100644
--- a/src/main/java/org/traccar/mail/LogMailManager.java
+++ b/src/main/java/org/traccar/mail/LogMailManager.java
@@ -38,7 +38,9 @@ public class LogMailManager implements MailManager {
@Override
public void sendMessage(User user, String subject, String body, MimeBodyPart attachment) throws MessagingException {
- LOGGER.info("\nTo: " + user.getEmail() + "\nSubject: " + subject + "\nBody:\n" + body);
+ LOGGER.info(
+ "Email sent\nTo: {}\nSubject: {}\nAttachment: {}\nBody:\n{}",
+ user.getEmail(), subject, attachment != null ? attachment.getFileName() : null, body);
}
}