Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit 08eefed

Browse files
authored
scrub phone number from failed SMS log line (#2119)
1 parent eae7096 commit 08eefed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/userreport/send.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (c *Controller) HandleSend() http.Handler {
169169
}
170170

171171
if !suppressError {
172-
logger.Errorw("unable to issue user-report code", "status", result.HTTPCode, "error", result.ErrorReturn.Error)
172+
logger.Errorw("unable to issue user-report code", "status", result.HTTPCode, "error", issueapi.ScrubPhoneNumbers(result.ErrorReturn.Error))
173173
// The error returned isn't something the user can easily fix, show internal error, but hide form.
174174
m["error"] = []string{locale.Get("user-report.internal-error")}
175175
m["skipForm"] = true

0 commit comments

Comments
 (0)