1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

Improve the readability of some log messages

This patch contains a few changes to logging messages, to improve log
readability.

While at it, an obsolete TODO in the SMTP courier is removed.
This commit is contained in:
Alberto Bertogli
2016-10-24 10:49:49 +01:00
parent 60a7932bd3
commit 1bc111f783
6 changed files with 41 additions and 45 deletions

View File

@@ -329,7 +329,7 @@ func (item *Item) SendLoop(q *Queue) {
delay := nextDelay(item.CreatedAt)
tr.Printf("waiting for %v", delay)
maillog.QueueLoop(item.ID, delay)
maillog.QueueLoop(item.ID, item.From, delay)
time.Sleep(delay)
}
@@ -339,7 +339,7 @@ func (item *Item) SendLoop(q *Queue) {
}
tr.Printf("all done")
maillog.QueueLoop(item.ID, 0)
maillog.QueueLoop(item.ID, item.From, 0)
q.Remove(item.ID)
}