Skip to content

Commit

Permalink
chore: improve courier logging (#3985)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Jul 5, 2024
1 parent 7674f46 commit a84fb3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions courier/smtp_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ func (c *SMTPChannel) Dispatch(ctx context.Context, msg Message) error {
gm.AddAlternative("text/html", htmlBody)
}

if err := c.smtpClient.DialAndSend(ctx, gm); err != nil {
c.d.Logger().
if err := errors.WithStack(c.smtpClient.DialAndSend(ctx, gm)); err != nil {
logger.
WithError(err).
Error("Unable to send email using SMTP connection.")

Expand Down

0 comments on commit a84fb3f

Please sign in to comment.