X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/66a089434f38163273c3a5b9138f9c4347873b69..3433f306caf560017377b32adf7a23842ba9ab31:/lib/crunchrun/logging.go diff --git a/lib/crunchrun/logging.go b/lib/crunchrun/logging.go index 76a55c4992..91a1b77cf4 100644 --- a/lib/crunchrun/logging.go +++ b/lib/crunchrun/logging.go @@ -175,9 +175,9 @@ func ReadWriteLines(in io.Reader, writer io.Writer, done chan<- bool) { } // NewThrottledLogger creates a new thottled logger that -// (a) prepends timestamps to each line -// (b) batches log messages and only calls the underlying Writer -// at most once per "crunchLogSecondsBetweenEvents" seconds. +// - prepends timestamps to each line, and +// - batches log messages and only calls the underlying Writer +// at most once per "crunchLogSecondsBetweenEvents" seconds. func NewThrottledLogger(writer io.WriteCloser) *ThrottledLogger { tl := &ThrottledLogger{} tl.flush = make(chan struct{}, 1)