forked from qt-creator/qt-creator
Utils: Add bits of process output when debugging QtcProcess
Change-Id: I03b7825e29be5dd5a78768c5831756703ce7fdf1 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -734,8 +734,10 @@ QtcProcess::QtcProcess(QObject *parent)
|
||||
qCDebug(processLog).nospace() << "Process " << number << " finished: "
|
||||
<< "result=" << int(result())
|
||||
<< ", ex=" << exitCode()
|
||||
<< ", " << stdOut().size() << " bytes stdout"
|
||||
<< ", " << stdErr().size() << " bytes stderr"
|
||||
<< ", " << stdOut().size() << " bytes stdout: "
|
||||
<< stdOut().left(20)
|
||||
<< ", " << stdErr().size() << " bytes stderr: "
|
||||
<< stdErr().left(1000)
|
||||
<< ", " << msElapsed << " ms elapsed";
|
||||
if (processStdoutLog().isDebugEnabled() && !stdOut().isEmpty())
|
||||
qCDebug(processStdoutLog).nospace()
|
||||
|
Reference in New Issue
Block a user