trim log lines, fixed sampleformat

This commit is contained in:
badaix 2016-11-03 09:13:23 +01:00
parent dd29f87951
commit 5dc3a9c0b1
2 changed files with 26 additions and 3 deletions

View file

@ -117,7 +117,9 @@ void ProcessStream::onStderrMsg(const char* buffer, size_t n)
{
if (logStderr_)
{
logO << string(buffer, n);
string line = trim_copy(string(buffer, n));
if (line.find('\0') == string::npos)
logO << line << "\n";
}
}