Skip to content

Commit

Permalink
Put error message in the error email subject
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Jun 6, 2022
1 parent a8eaf98 commit 97f56b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/goatcounter/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func flagErrors(errors string, v *zvalidate.Validator) {
}

bgrun.Run("email:error", func() {
err := blackmail.Send("GoatCounter Error",
err := blackmail.Send(fmt.Sprintf("GoatCounter Error: %s", zstring.GetLine(l.Msg, 1)),
blackmail.From("", from),
blackmail.To(to),
blackmail.BodyText([]byte(zlog.Config.Format(l))))
Expand Down

0 comments on commit 97f56b2

Please sign in to comment.