Preserve runtime log evidence verbatim

This commit is contained in:
npc0-hue
2026-09-03 12:40:17 +08:00
parent 8ac45cf999
commit 48dd540253
3 changed files with 16 additions and 22 deletions
-14
View File
@@ -1235,20 +1235,6 @@ func RedactText(value string) string {
return redacted
}
func splitBoundedLines(value string) []string {
value = RedactText(value)
lines := strings.Split(value, "\n")
out := make([]string, 0, len(lines))
for _, line := range lines {
line = strings.TrimRight(line, "\r")
if strings.TrimSpace(line) == "" {
continue
}
out = append(out, line)
}
return out
}
// splitRawLogLines only removes the newline framing used by LogEntry. It
// deliberately preserves every other byte, including blank lines and spaces.
func splitRawLogLines(value string) []string {