Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of non-UTF-8 log messages
Leverage our existing `_try_to_decode_string` function which uses `errors="replace"` for decoding, guaranteeing that log messages won't be lost entirely if they contain non-UTF-8 data. Also, pass the log message around as a C++ string rather than a C string, which is more efficient anyway (since the size is known and doesn't need to be computed). Signed-off-by: Matt Wozniski <[email protected]>
- Loading branch information