afadd0aab9
The CRI requires us to prepend (timestamp, stream) to every line of the output, and it's quite likely (especially in the !terminal case) that we will read more than one line of output in the read loop. So, we need to write out each line separately with the prepended timestamps. Doing this the simple way (the final part of the buffer is written partially if it doesn't end in a newline) makes the code much simpler, with the downside that if we ever switch to multiple streams for output we'll have to rewrite parts of this. In addition, drop the debugging output of cri-o for each chunk read so we stop spamming stderr. We can do this now because |
||
---|---|---|
.. | ||
cmsg.c | ||
cmsg.h | ||
conmon.c | ||
Makefile |