From c2c30c25ed6ed258c23c8df17adcd5c0b2d51103 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 20 Jun 2024 12:52:44 -0400 Subject: [PATCH] Notifications: Do not log email address in error message (#89314) Do not log email address in error message --- 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())