Minor: remove some debug output. Error messages still intact.
This commit is contained in:
parent
f8897c2950
commit
7c3e4ea497
@ -57,21 +57,21 @@ bool Command::execute(QString workingDirectory, QStringList args) {
|
|||||||
connect(&(*p), SIGNAL(readyReadStandardError()), this, SLOT(readyReadStandardError()));
|
connect(&(*p), SIGNAL(readyReadStandardError()), this, SLOT(readyReadStandardError()));
|
||||||
|
|
||||||
if (!args.isEmpty()) {
|
if (!args.isEmpty()) {
|
||||||
qDebug() << "START COMMAND" << m_command << "WITH ARGS" << args
|
//qDebug() << "START COMMAND" << m_command << "WITH ARGS" << args
|
||||||
<< "IN" << p->workingDirectory();
|
// << "IN" << p->workingDirectory();
|
||||||
p->start(m_command, args);
|
p->start(m_command, args);
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "START COMMAND" << m_command
|
//qDebug() << "START COMMAND" << m_command
|
||||||
<< "IN" << p->workingDirectory();
|
// << "IN" << p->workingDirectory();
|
||||||
p->start(m_command);
|
p->start(m_command);
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 const start = QDateTime::currentDateTime().toMSecsSinceEpoch();
|
qint64 const start = QDateTime::currentDateTime().toMSecsSinceEpoch();
|
||||||
|
|
||||||
if (p->waitForStarted(m_waitForStartTimeout)) {
|
if (p->waitForStarted(m_waitForStartTimeout)) {
|
||||||
qDebug() << "PROCESS" << m_command << "STARTED IN" << p->workingDirectory();
|
// qDebug() << "PROCESS" << m_command << "STARTED IN" << p->workingDirectory();
|
||||||
if (p->state() == QProcess::ProcessState::Running) {
|
if (p->state() == QProcess::ProcessState::Running) {
|
||||||
qDebug() << "PROCESS" << m_command << "RUNNING IN" << p->workingDirectory();
|
// qDebug() << "PROCESS" << m_command << "RUNNING IN" << p->workingDirectory();
|
||||||
// wait forever for git/opkg-commands to finish
|
// wait forever for git/opkg-commands to finish
|
||||||
int wait = m_waitForFinishTimeout;
|
int wait = m_waitForFinishTimeout;
|
||||||
if (m_command.trimmed().startsWith("git", Qt::CaseInsensitive) ||
|
if (m_command.trimmed().startsWith("git", Qt::CaseInsensitive) ||
|
||||||
@ -80,7 +80,7 @@ bool Command::execute(QString workingDirectory, QStringList args) {
|
|||||||
}
|
}
|
||||||
bool const no_timeout = p->waitForFinished(wait);
|
bool const no_timeout = p->waitForFinished(wait);
|
||||||
if (no_timeout) {
|
if (no_timeout) {
|
||||||
qDebug() << "PROCESS" << m_command << "FINISHED IN" << p->workingDirectory();
|
// qDebug() << "PROCESS" << m_command << "FINISHED IN" << p->workingDirectory();
|
||||||
if (p->exitStatus() == QProcess::NormalExit) {
|
if (p->exitStatus() == QProcess::NormalExit) {
|
||||||
if ((m_exitCode = p->exitCode()) == 0) {
|
if ((m_exitCode = p->exitCode()) == 0) {
|
||||||
qint64 const end = QDateTime::currentDateTime().toMSecsSinceEpoch();
|
qint64 const end = QDateTime::currentDateTime().toMSecsSinceEpoch();
|
||||||
|
Loading…
Reference in New Issue
Block a user