mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
log sent alert emails in pocketbase
This commit is contained in:
@@ -147,5 +147,7 @@ func (am *AlertManager) sendAlert(message *mailer.Message) {
|
||||
}
|
||||
if err := am.mailClient.Send(message); err != nil {
|
||||
am.app.Logger().Error("Failed to send alert: ", "err", err.Error())
|
||||
} else {
|
||||
am.app.Logger().Info("Sent alert", "to", message.To, "subj", message.Subject)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user