bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
14.81k stars 1.24k forks source link

serve: Fix logging prints to stdout/stderr #8877

Closed alexcrichton closed 5 days ago

alexcrichton commented 6 days ago

This commit fixes writes to stdout/stderr which don't end in a newline to not get split across lines with a prefix on each line. Instead internally a flag is used to track whether a prefix is required at the beginning of each chunk.