queue: in log lines about delivery, we had both "attempts" starting at 0 and "attempt" starting at 1, keep only "attempts" starting at 1

from eric l, thanks!
This commit is contained in:
Mechiel Lukkien
2025-04-07 13:33:31 +02:00
parent 39c21f80cd
commit 902de0e1f9
3 changed files with 1 additions and 3 deletions

View File

@ -1338,7 +1338,7 @@ func deliver(log mlog.Log, resolver dns.Resolver, m0 Msg) {
qlog := log.WithCid(mox.Cid()).With(
slog.Any("from", m0.Sender()),
slog.Int("attempts", m0.Attempts))
slog.Int("attempts", m0.Attempts+1))
defer func() {
deliveryResults <- formatIPDomain(m0.RecipientDomain)