Commit 74f93fe5 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Adding logging to PuppetCreator

Change-Id: I9a0450b723ebca82439057e7839e19985da4a2d6
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 980fd1b2
......@@ -48,10 +48,13 @@
#include <QCoreApplication>
#include <QCryptographicHash>
#include <QDateTime>
#include <QLoggingCategory>
#include <QLibraryInfo>
#include <QMessageBox>
#include <QThread>
static Q_LOGGING_CATEGORY(puppetStart, "puppet.start")
static Q_LOGGING_CATEGORY(puppetBuild, "puppet.build")
namespace QmlDesigner {
......@@ -382,6 +385,11 @@ QProcessEnvironment PuppetCreator::processEnvironment() const
if (m_availablePuppetType != FallbackPuppet)
environment.appendOrSet("QML2_IMPORT_PATH", importPaths.join(pathSep), pathSep);
qCInfo(puppetStart) << Q_FUNC_INFO;
qCInfo(puppetStart) << "Puppet qrc mapping" << m_qrcMapping;
qCInfo(puppetStart) << "Puppet import paths:" << importPaths;
qCInfo(puppetStart) << "Puppet environment:" << environment.toStringList();
return environment.toProcessEnvironment();
}
......@@ -454,6 +462,9 @@ bool PuppetCreator::startBuildProcess(const QString &buildDirectoryPath,
process.waitForFinished();
qCInfo(puppetBuild) << Q_FUNC_INFO;
qCInfo(puppetBuild) << m_compileLog;
if (process.exitStatus() == QProcess::NormalExit && process.exitCode() == 0)
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment