1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-07-01 00:45:27 +02:00

Chore: Standardize error logging & formatting

This commit is contained in:
Ralph Slooten
2024-01-01 15:25:38 +13:00
parent 4568b95bd6
commit 83e291208a
7 changed files with 13 additions and 18 deletions

View File

@ -112,8 +112,7 @@ The --recent flag will only consider files with a modification date within the l
err = smtp.SendMail(sendmail.SMTPAddr, nil, returnPath, recipients, body)
if err != nil {
logger.Log().Errorf("error sending mail: %s", err.Error())
logger.Log().Errorf(path)
logger.Log().Errorf("error sending mail: %s (%s)", err.Error(), path)
return nil
}