Skip to content

Commit

Permalink
Log shoutrrr URL instead of unused "to" var
Browse files Browse the repository at this point in the history
  • Loading branch information
parnic committed Sep 1, 2024
1 parent a817576 commit e0618e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beszel/internal/alerts/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (am *AlertManager) sendAlert(message *mailer.Message) {
if am.config.NotificationType == "shoutrrr" {
err := shoutrrr.Send(am.config.NotificationURL, fmt.Sprintf("%s\n\n%s", message.Subject, message.Text))
if err == nil {
am.app.Logger().Info("Sent shoutrrr alert", "to", message.To, "subj", message.Subject)
am.app.Logger().Info("Sent shoutrrr alert", "to", am.config.NotificationURL, "subj", message.Subject)
return
}

Expand Down

0 comments on commit e0618e3

Please sign in to comment.