From fec5b421a9ed765eb363042a2d87ec8b6772f841 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 20:11:16 +0300 Subject: [PATCH] [v10.4.x] Notifications: Do not log email address in error message (#89500) Notifications: Do not log email address in error message (#89314) Do not log email address in error message (cherry picked from commit c2c30c25ed6ed258c23c8df17adcd5c0b2d51103) Co-authored-by: William Wernert --- pkg/services/notifications/smtp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/notifications/smtp.go b/pkg/services/notifications/smtp.go index 2c46982b352..e0588ce3cb5 100644 --- a/pkg/services/notifications/smtp.go +++ b/pkg/services/notifications/smtp.go @@ -70,7 +70,7 @@ func (sc *SmtpClient) Send(ctx context.Context, messages ...*Message) (int, erro emailsSentFailed.Inc() } - err = fmt.Errorf("failed to send notification to email addresses: %s: %w", strings.Join(msg.To, ";"), innerError) + err = fmt.Errorf("failed to send email: %w", innerError) span.RecordError(err) span.SetStatus(codes.Error, err.Error())