Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Log subscriber id/uuid on failed opt-in message push. Closes #1333.

Kailash Nadh2f487de9f74c
diff --git a/cmd/subscribers.go b/cmd/subscribers.go
index 57510aff..d586d0a0 100644
--- a/cmd/subscribers.go
+++ b/cmd/subscribers.go
@@ -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
}