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(readyReadStandardOutput()), this, SLOT(readyReadStandardOutput()));
|
||||||
connect(&(*p), SIGNAL(readyReadStandardError()), this, SLOT(readyReadStandardError()));
|
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);
|
p->setWorkingDirectory(workingDirectory);
|
||||||
if (!args.isEmpty()) {
|
if (!args.isEmpty()) {
|
||||||
@ -55,8 +56,11 @@ bool Command::execute(QString workingDirectory, QStringList args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (p->waitForStarted(m_waitForStartTimeout)) {
|
if (p->waitForStarted(m_waitForStartTimeout)) {
|
||||||
|
qDebug() << "PROCESS" << m_command << "STARTED";
|
||||||
if (p->state() == QProcess::ProcessState::Running) {
|
if (p->state() == QProcess::ProcessState::Running) {
|
||||||
|
qDebug() << "PROCESS" << m_command << "RUNNING";
|
||||||
if (p->waitForFinished(m_waitForFinishTimeout)) {
|
if (p->waitForFinished(m_waitForFinishTimeout)) {
|
||||||
|
qDebug() << "PROCESS" << m_command << "FINISHED";
|
||||||
if (p->exitStatus() == QProcess::NormalExit) {
|
if (p->exitStatus() == QProcess::NormalExit) {
|
||||||
qInfo() << "EXECUTED" << m_command
|
qInfo() << "EXECUTED" << m_command
|
||||||
<< "with code" << p->exitCode();
|
<< "with code" << p->exitCode();
|
||||||
|
Loading…
Reference in New Issue
Block a user