From 9775792916d4765f3ee392dc72d4a25fcf911ec8 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 17 Jul 2023 16:52:27 +0200 Subject: [PATCH] Minor change: extended debug-output. --- process/command.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/process/command.cpp b/process/command.cpp index 25efb3f..93c579c 100644 --- a/process/command.cpp +++ b/process/command.cpp @@ -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();