[v11.1.x] Notifications: Do not log email address in error message (#89502)
Notifications: Do not log email address in error message (#89314)
Do not log email address in error message
(cherry picked from commit c2c30c25ed)
Co-authored-by: William Wernert <william.wernert@grafana.com>
This commit is contained in:
co-authored by
William Wernert
parent
0b55fd04bc
commit
fe6cc7bcb5
@@ -70,7 +70,7 @@ func (sc *SmtpClient) Send(ctx context.Context, messages ...*Message) (int, erro
|
|||||||
emailsSentFailed.Inc()
|
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.RecordError(err)
|
||||||
span.SetStatus(codes.Error, err.Error())
|
span.SetStatus(codes.Error, err.Error())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user