Skip to content

Commit

Permalink
Logging tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Jul 10, 2021
1 parent 5904c9b commit e0b3f60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/smtpsender/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ func (q *Queue) run() {
if err := func() error {
conn, err := q.queues.Transport.Dial(q.destination)
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)
}
defer conn.Close()
Expand Down Expand Up @@ -165,7 +164,7 @@ func (q *Queue) run() {

return 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?
} else {
q.queues.Log.Println("Sent mail from", ref.From, "to", q.destination)
Expand Down

0 comments on commit e0b3f60

Please sign in to comment.