diff options
author | Anton Tananaev <anton@traccar.org> | 2023-01-31 15:03:48 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-01-31 15:03:48 -0800 |
commit | bcf1daf348c9a83892b1b0e214052327529d7064 (patch) | |
tree | 9e6b4c5118b796f871805922b0fe7819c929781b /src | |
parent | f4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a (diff) | |
download | trackermap-server-bcf1daf348c9a83892b1b0e214052327529d7064.tar.gz trackermap-server-bcf1daf348c9a83892b1b0e214052327529d7064.tar.bz2 trackermap-server-bcf1daf348c9a83892b1b0e214052327529d7064.zip |
Improve test emails
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/mail/LogMailManager.java | 4 |
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); } } |