summaryrefslogtreecommitdiffstats
path: root/src/sdk/installerbase.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/sdk/installerbase.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/sdk/installerbase.cpp')
-rw-r--r--src/sdk/installerbase.cpp30
1 files changed, 6 insertions, 24 deletions
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp
index 5b513e7a6..914be33f6 100644
--- a/src/sdk/installerbase.cpp
+++ b/src/sdk/installerbase.cpp
@@ -83,11 +83,8 @@ int InstallerBase::run()
controlScript = QLatin1String(":/metadata/installer-config/")
+ m_core->settings().controlScript();
}
- qCDebug(QInstaller::lcTranslations) << "Language:" << QLocale().uiLanguages()
+ qCDebug(QInstaller::lcInstallerInstallLog) << "Language:" << QLocale().uiLanguages()
.value(0, QLatin1String("No UI language set")).toUtf8().constData();
- qCDebug(QInstaller::lcInstallerInstallLog).noquote() << "Arguments:" << arguments().join(QLatin1String(", "));
-
- dumpResourceTree();
const QString directory = QLatin1String(":/translations");
// Check if there is a modified translation first to enable people
@@ -132,9 +129,9 @@ int InstallerBase::run()
QDirIterator fontIt(QStringLiteral(":/fonts"));
while (fontIt.hasNext()) {
const QString path = fontIt.next();
- qCDebug(QInstaller::lcResources) << "Registering custom font" << path;
+ qCDebug(QInstaller::lcDeveloperBuild) << "Registering custom font" << path;
if (QFontDatabase::addApplicationFont(path) == -1)
- qCWarning(QInstaller::lcInstallerInstallLog) << "Failed to register font!";
+ qCWarning(QInstaller::lcDeveloperBuild) << "Failed to register font!";
}
}
//create the wizard GUI
@@ -158,11 +155,11 @@ int InstallerBase::run()
}
if (squishPort != 0) {
if (Squish::allowAttaching(squishPort))
- qCDebug(QInstaller::lcGeneral) << "Attaching to squish port " << squishPort << " succeeded";
+ qCDebug(QInstaller::lcDeveloperBuild) << "Attaching to squish port " << squishPort << " succeeded";
else
- qCDebug(QInstaller::lcGeneral) << "Attaching to squish failed.";
+ qCDebug(QInstaller::lcDeveloperBuild) << "Attaching to squish failed.";
} else {
- qCWarning(QInstaller::lcGeneral) << "Invalid squish port number: " << squishPort;
+ qCWarning(QInstaller::lcDeveloperBuild) << "Invalid squish port number: " << squishPort;
}
#endif
const int result = QCoreApplication::instance()->exec();
@@ -186,18 +183,3 @@ int InstallerBase::run()
return QInstaller::PackageManagerCore::Failure;
}
-
-
-// -- private
-
-void InstallerBase::dumpResourceTree() const
-{
- qCDebug(QInstaller::lcResources) << "Resource tree:";
- QDirIterator it(QLatin1String(":/"), QDir::NoDotAndDotDot | QDir::AllEntries | QDir::Hidden,
- QDirIterator::Subdirectories);
- while (it.hasNext()) {
- if (it.next().startsWith(QLatin1String(":/qt-project.org")))
- continue;
- qCDebug(QInstaller::lcResources) << " " << it.filePath().toUtf8().constData();
- }
-}