mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Notifications: Do not log email address in error message (#89314)
Do not log email address in error message
This commit is contained in:
parent
7c868e9b52
commit
c2c30c25ed
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user