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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user