Add metrics to sendNags errors in expiration-mailer

This commit is contained in:
Lucas Amorim 2017-10-27 16:48:35 -07:00
parent e2de327f4d
commit a7a2eaf035
No known key found for this signature in database
GPG Key ID: 59E9C92E39012D18
1 changed files with 1 additions and 0 deletions

View File

@ -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
}