π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[server] Improve listmonk err and alerts
Neeraj Gupta9f913de0350c
diff --git a/server/pkg/controller/mailing_lists.go b/server/pkg/controller/mailing_lists.goindex e508ebc7fe..6ae3b0d69a 100644--- a/server/pkg/controller/mailing_lists.go+++ b/server/pkg/controller/mailing_lists.go@@ -218,7 +218,7 @@ func (c *MailingListsController) listmonkSubscribe(email string) error {err := listmonk.SendRequest("POST", c.listmonkCredentials.BaseURL+"/api/subscribers", data,c.listmonkCredentials.Username, c.listmonkCredentials.Password)if err != nil {- log.Errorf("Listmonk - Could not subscribe '%s': %s", email, err)+ log.Errorf("Listmonk subscribe failed '%s': %s", email, err)c.notifyListmonkFailure("Listmonk subscribe failed", err)}return err@@ -234,16 +234,16 @@ func (c *MailingListsController) listmonkUnsubscribe(email string) error {id, err := listmonk.GetSubscriberID(c.listmonkCredentials.BaseURL+"/api/subscribers",c.listmonkCredentials.Username, c.listmonkCredentials.Password, email)if err != nil {- log.Errorf("Listmonk - Could not find subscriber '%s': %s", email, err)- c.notifyListmonkFailure("Listmonk subscriber lookup failed", err)+ log.Errorf("Listmonk - Unsub failed, could not find subscriber '%s': %s", email, err)+ c.notifyListmonkFailure("Listmonk - Unsub failed, could not find subscriber", err)return stacktrace.Propagate(err, "")}err = listmonk.SendRequest("DELETE", c.listmonkCredentials.BaseURL+"/api/subscribers/"+strconv.Itoa(id),map[string]interface{}{}, c.listmonkCredentials.Username, c.listmonkCredentials.Password)if err != nil {- log.Errorf("Listmonk - Could not unsubscribe '%s': %s", email, err)- c.notifyListmonkFailure("Listmonk unsubscribe failed", err)+ log.Errorf("Listmonk - Unsub failed to delete '%s': %s", email, err)+ c.notifyListmonkFailure("Listmonk - Unsub failed to delete", err)}return err}