Skip to content

Commit

Permalink
Log subscriber id/uuid on failed opt-in message push. Closes #1333.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jan 10, 2024
1 parent 908173c commit 2f487de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/subscribers.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ func sendOptinConfirmationHook(app *App) func(sub models.Subscriber, listIDs []i

// Send the e-mail.
if err := app.sendNotification([]string{sub.Email}, app.i18n.T("subscribers.optinSubject"), notifSubscriberOptin, out); err != nil {
app.log.Printf("error sending opt-in e-mail: %s", err)
app.log.Printf("error sending opt-in e-mail for subscriber %d (%s): %s", sub.ID, sub.UUID, err)
return 0, err
}

Expand Down

0 comments on commit 2f487de

Please sign in to comment.