expiration-mailer: Don't audit log "no usable contact address" (#7529)
Fixes #7528
This commit is contained in:
parent
3786401f10
commit
0eb87b83ad
|
@ -456,6 +456,9 @@ func (m *mailer) sendToOneRegID(ctx context.Context, conn bmail.Conn, regID int6
|
||||||
var badAddrErr *bmail.BadAddressSMTPError
|
var badAddrErr *bmail.BadAddressSMTPError
|
||||||
if errors.Is(err, errNoValidEmail) || errors.As(err, &badAddrErr) {
|
if errors.Is(err, errNoValidEmail) || errors.As(err, &badAddrErr) {
|
||||||
m.updateLastNagTimestamps(ctx, parsedCerts)
|
m.updateLastNagTimestamps(ctx, parsedCerts)
|
||||||
|
// Some accounts have no email; some accounts have an invalid email.
|
||||||
|
// Treat those as non-error cases.
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
m.stats.errorCount.With(prometheus.Labels{"type": "SendNags"}).Inc()
|
m.stats.errorCount.With(prometheus.Labels{"type": "SendNags"}).Inc()
|
||||||
|
|
Loading…
Reference in New Issue