Log subscriber UUID in message send errors

This commit is contained in:
Kailash Nadh 2020-10-24 14:24:22 +05:30
parent a1aeba22bb
commit a0b36bb01b
1 changed files with 2 additions and 1 deletions

View File

@ -265,7 +265,8 @@ func (m *Manager) messageWorker() {
}
if err := m.messengers[msg.Campaign.Messenger].Push(out); err != nil {
m.logger.Printf("error sending message in campaign %s: %v", msg.Campaign.Name, err)
m.logger.Printf("error sending message in campaign %s: subscriber %s: %v",
msg.Campaign.Name, msg.Subscriber.UUID, err)
select {
case m.campMsgErrorQueue <- msgError{camp: msg.Campaign, err: err}: