Add metrics to sendNags errors in expiration-mailer
This commit is contained in:
parent
e2de327f4d
commit
a7a2eaf035
|
|
@ -240,6 +240,7 @@ func (m *mailer) processCerts(allCerts []core.Certificate) {
|
|||
|
||||
err = m.sendNags(*reg.Contact, parsedCerts)
|
||||
if err != nil {
|
||||
m.stats.errorCount.With(prometheus.Labels{"type": "sendNags"}).Inc()
|
||||
m.log.AuditErr(fmt.Sprintf("Error sending nag emails: %s", err))
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue