Minor change: extended debug-output.
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user