(w io.Writer, r io.Reader, prefix string)
| 603 | } |
| 604 | |
| 605 | func copyLogWithLinePrefix(w io.Writer, r io.Reader, prefix string) error { |
| 606 | sanitized := transform.NewReader(r, &asciisanitizer.Sanitizer{}) |
| 607 | scanner := bufio.NewScanner(sanitized) |
| 608 | for scanner.Scan() { |
| 609 | fmt.Fprintf(w, "%s%s\n", prefix, scanner.Text()) |
| 610 | } |
| 611 | return nil |
| 612 | } |
no outgoing calls