Minor change: extended debug-output.
This commit is contained in:
parent
93d6277386
commit
9775792916
@ -45,7 +45,8 @@ bool Command::execute(QString workingDirectory, QStringList args) {
|
||||
connect(&(*p), SIGNAL(readyReadStandardOutput()), this, SLOT(readyReadStandardOutput()));
|
||||
connect(&(*p), SIGNAL(readyReadStandardError()), this, SLOT(readyReadStandardError()));
|
||||
|
||||
qCritical() << "START COMMAND" << m_command << "IN" << workingDirectory;
|
||||
qCritical() << "START COMMAND" << m_command << "WITH ARGS" << args
|
||||
<< "IN" << workingDirectory;
|
||||
|
||||
p->setWorkingDirectory(workingDirectory);
|
||||
if (!args.isEmpty()) {
|
||||
@ -55,8 +56,11 @@ bool Command::execute(QString workingDirectory, QStringList args) {
|
||||
}
|
||||
|
||||
if (p->waitForStarted(m_waitForStartTimeout)) {
|
||||
qDebug() << "PROCESS" << m_command << "STARTED";
|
||||
if (p->state() == QProcess::ProcessState::Running) {
|
||||
qDebug() << "PROCESS" << m_command << "RUNNING";
|
||||
if (p->waitForFinished(m_waitForFinishTimeout)) {
|
||||
qDebug() << "PROCESS" << m_command << "FINISHED";
|
||||
if (p->exitStatus() == QProcess::NormalExit) {
|
||||
qInfo() << "EXECUTED" << m_command
|
||||
<< "with code" << p->exitCode();
|
||||
|
Loading…
Reference in New Issue
Block a user