LLLeap: handle partial lines in stderr (#4678)
parent
3b3c85d1f3
commit
f64a41f09e
|
|
@ -188,6 +188,17 @@ public:
|
||||||
<< childout.peek(0, peeklen) << "..." << LL_ENDL;
|
<< childout.peek(0, peeklen) << "..." << LL_ENDL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handle any remaining stderr data (partial lines) the same way as we do
|
||||||
|
// for stdout: log it.
|
||||||
|
LLProcess::ReadPipe& childerr(mChild->getReadPipe(LLProcess::STDERR));
|
||||||
|
if (childerr.size())
|
||||||
|
{
|
||||||
|
LLProcess::ReadPipe::size_type
|
||||||
|
peeklen((std::min)(LLProcess::ReadPipe::size_type(50), childerr.size()));
|
||||||
|
LL_WARNS("LLLeap") << "Final stderr " << childerr.size() << " bytes: "
|
||||||
|
<< childerr.peek(0, peeklen) << "..." << LL_ENDL;
|
||||||
|
}
|
||||||
|
|
||||||
// Kill this instance. MUST BE LAST before return!
|
// Kill this instance. MUST BE LAST before return!
|
||||||
delete this;
|
delete this;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue