MCPcopy Index your code
hub / github.com/MiniCodeMonkey/chief / logStream

Method logStream

internal/loop/loop.go:485–490  ·  view source on GitHub ↗

logStream logs a stream with a prefix.

(r io.Reader, prefix string)

Source from the content-addressed store, hash-verified

483
484// logStream logs a stream with a prefix.
485func (l *Loop) logStream(r io.Reader, prefix string) {
486 scanner := bufio.NewScanner(r)
487 for scanner.Scan() {
488 l.logLine(prefix + scanner.Text())
489 }
490}
491
492// logLine writes a line to the log file.
493func (l *Loop) logLine(line string) {

Callers 1

runIterationMethod · 0.95

Calls 1

logLineMethod · 0.95

Tested by

no test coverage detected