Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Add debugging info to error handling during send
Browse files Browse the repository at this point in the history
  • Loading branch information
mlacorte committed Oct 10, 2021
1 parent 834a4fa commit 493fc85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ func (m *Manager) worker() {
if err := m.messengers[msg.Campaign.Messenger].Push(out); err != nil {
m.logger.Printf("error sending message in campaign %s: subscriber %s: %v",
msg.Campaign.Name, msg.Subscriber.UUID, err)
m.logger.Printf("From: %s, To: %s, Subscriber.Name: %s, Subscriber.Email: %s",
out.From, out.To, out.Subscriber.Name, out.Subscriber.Email)

select {
case m.campMsgErrorQueue <- msgError{camp: msg.Campaign, err: err}:
Expand Down

0 comments on commit 493fc85

Please sign in to comment.