From 40c43e4c312c9f1cc4e2e44ac31b4482ccbbc6c0 Mon Sep 17 00:00:00 2001 From: Katja Marttila Date: Fri, 3 Jul 2020 09:49:41 +0300 Subject: 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 --- src/libs/installer/component.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/libs/installer/component.cpp') diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index 389580e7c..234d57622 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -562,7 +562,7 @@ void Component::loadComponentScript(const QString &fileName) } catch (const Error &error) { if (packageManagerCore()->settings().allowUnstableComponents()) { setUnstable(Component::UnstableError::ScriptLoadingFailed, error.message()); - qCWarning(QInstaller::lcInstallerInstallLog) << error.message(); + qCWarning(QInstaller::lcDeveloperBuild) << error.message(); } else { throw error; } @@ -879,8 +879,7 @@ QStringList Component::archives() const void Component::addDownloadableArchive(const QString &path) { Q_ASSERT(isFromOnlineRepository()); - - qCDebug(QInstaller::lcGeneral) << "addDownloadable" << path; + qCDebug(QInstaller::lcDeveloperBuild) << "addDownloadable" << path; d->m_downloadableArchives.append(d->m_vars.value(scVersion) + path); } @@ -1341,7 +1340,7 @@ bool Component::isDefault() const } if (!valueFromScript.isError()) return valueFromScript.toBool(); - qCWarning(QInstaller::lcInstallerInstallLog) << "Value from script is not valid." + qCWarning(QInstaller::lcDeveloperBuild) << "Value from script is not valid." << (valueFromScript.toString().isEmpty() ? QString::fromLatin1("Unknown error.") : valueFromScript.toString()); return false; -- cgit v1.2.3