mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-22 19:16:29 +03:00
Logging tweak
This commit is contained in:
@@ -117,7 +117,6 @@ func (q *Queue) run() {
|
|||||||
if err := func() error {
|
if err := func() error {
|
||||||
conn, err := q.queues.Transport.Dial(q.destination)
|
conn, err := q.queues.Transport.Dial(q.destination)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
q.queues.Log.Println("Failed to dial destination", q.destination, "due to error:", err)
|
|
||||||
return fmt.Errorf("q.queues.Transport.Dial: %w", err)
|
return fmt.Errorf("q.queues.Transport.Dial: %w", err)
|
||||||
}
|
}
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
@@ -165,7 +164,7 @@ func (q *Queue) run() {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}(); err != nil {
|
}(); err != nil {
|
||||||
q.queues.Log.Println("Will retry sending to ", q.destination, "later due to error:", err)
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user