Improve logging when send fails
This commit is contained in:
parent
2afb313061
commit
5904c9b960
@ -165,7 +165,7 @@ func (q *Queue) run() {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}(); err != nil {
|
}(); err != nil {
|
||||||
q.queues.Log.Println("Failed to send message:", err, "- will retry")
|
q.queues.Log.Println("Will retry sending to ", q.destination, "later due to error:", err)
|
||||||
// TODO: Send a mail to the inbox on the first instance?
|
// TODO: Send a mail to the inbox on the first instance?
|
||||||
} else {
|
} else {
|
||||||
q.queues.Log.Println("Sent mail from", ref.From, "to", q.destination)
|
q.queues.Log.Println("Sent mail from", ref.From, "to", q.destination)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user