Revert "cmd/stcrashreceiver: Aggregate slice out of bounds errors"

This reverts commit dc6a10dff4.
This commit is contained in:
Jakob Borg 2023-10-16 08:07:57 +02:00
parent c5a991cf0a
commit 9ce6a73f42

View File

@ -185,7 +185,6 @@ var (
ldbFileRe = regexp.MustCompile(`(\[file=)([0-9]+)(\.ldb\])`)
ldbInternalKeyRe = regexp.MustCompile(`(internal key ")[^"]+(", len=)[0-9]+`)
ldbPathRe = regexp.MustCompile(`(open|write|read) .+[\\/].+[\\/]index[^\\/]+[\\/][^\\/]+: `)
sliceBoundsRe = regexp.MustCompile(`(slice bounds out of range) \[.+`)
)
func sanitizeMessageLDB(message string) string {
@ -194,7 +193,6 @@ func sanitizeMessageLDB(message string) string {
message = ldbChecksumRe.ReplaceAllString(message, "${1}X${3}X")
message = ldbInternalKeyRe.ReplaceAllString(message, "${1}x${2}x")
message = ldbPathRe.ReplaceAllString(message, "$1 x: ")
message = sliceBoundsRe.ReplaceAllString(message, "$1")
return message
}