summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/elevatedexecuteoperation.cpp
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2020-07-03 09:49:41 +0300
committerKatja Marttila <katja.marttila@qt.io>2020-08-24 13:44:24 +0300
commit40c43e4c312c9f1cc4e2e44ac31b4482ccbbc6c0 (patch)
tree060519ebd49fcfaac5129bc395e5c849d318b46f /src/libs/installer/elevatedexecuteoperation.cpp
parentf2ab63396c1f101216b2c6ade37528492e464785 (diff)
Add verbose levels and cleanup log categories
Setting several verbose switches enables more logging and performs component checking. Also cleanup some logging categories and unify the rules. Task-number: QTIFW-1914 Change-Id: I9195f4bb02affaa87e66cf9023a3512e65e0645b Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/elevatedexecuteoperation.cpp')
-rw-r--r--src/libs/installer/elevatedexecuteoperation.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/installer/elevatedexecuteoperation.cpp b/src/libs/installer/elevatedexecuteoperation.cpp
index 05149fb26..6a4fd99d9 100644
--- a/src/libs/installer/elevatedexecuteoperation.cpp
+++ b/src/libs/installer/elevatedexecuteoperation.cpp
@@ -147,7 +147,7 @@ bool ElevatedExecuteOperation::Private::run(const QStringList &arguments)
process = new QProcessWrapper();
if (!workingDirectory.isEmpty()) {
process->setWorkingDirectory(workingDirectory);
- qCDebug(QInstaller::lcGeneral) << "ElevatedExecuteOperation setWorkingDirectory:"
+ qCDebug(QInstaller::lcInstallerInstallLog) << "ElevatedExecuteOperation setWorkingDirectory:"
<< workingDirectory;
}
@@ -169,7 +169,7 @@ bool ElevatedExecuteOperation::Private::run(const QStringList &arguments)
//readProcessOutput should only called from this current Thread -> Qt::DirectConnection
QObject::connect(process, SIGNAL(readyRead()), q, SLOT(readProcessOutput()), Qt::DirectConnection);
process->start(args.front(), args.mid(1));
- qCDebug(QInstaller::lcGeneral) << args.front() << "started, arguments:"
+ qCDebug(QInstaller::lcInstallerInstallLog) << args.front() << "started, arguments:"
<< QStringList(args.mid(1)).join(QLatin1String(" "));
bool success = false;
@@ -216,7 +216,7 @@ bool ElevatedExecuteOperation::Private::run(const QStringList &arguments)
QByteArray standardErrorOutput = process->readAllStandardError();
// in error case it would be useful to see something in verbose output
if (!standardErrorOutput.isEmpty())
- qCWarning(QInstaller::lcGeneral).noquote() << standardErrorOutput;
+ qCWarning(QInstaller::lcInstallerInstallLog).noquote() << standardErrorOutput;
returnValue = false;
}
@@ -243,15 +243,15 @@ void ElevatedExecuteOperation::Private::readProcessOutput()
Q_ASSERT(process);
Q_ASSERT(QThread::currentThread() == process->thread());
if (QThread::currentThread() != process->thread()) {
- qCDebug(QInstaller::lcGeneral) << Q_FUNC_INFO << "can only be called from the "
+ qCDebug(QInstaller::lcInstallerInstallLog) << Q_FUNC_INFO << "can only be called from the "
"same thread as the process is.";
}
const QByteArray output = process->readAll();
if (!output.isEmpty()) {
if (q->error() == UserDefinedError)
- qCWarning(QInstaller::lcGeneral)<< output;
+ qCWarning(QInstaller::lcInstallerInstallLog)<< output;
else
- qCDebug(QInstaller::lcGeneral) << output;
+ qCDebug(QInstaller::lcInstallerInstallLog) << output;
emit q->outputTextChanged(QString::fromLocal8Bit(output));
}
}