diff options
author | Katja Marttila <katja.marttila@qt.io> | 2016-11-22 13:53:58 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-02-13 11:44:43 +0000 |
commit | 77820bf2a318e4ac79b55f5e51361f159d561ac4 (patch) | |
tree | 2764c974cfcbe00971f92e450c4f31392dd90317 /src/libs/installer/component.cpp | |
parent | d0592e4f79f74d5a0d472d50a3c54bf23e9181de (diff) |
Use of QLoggingCategory
The change enables easier filtering of log messages
Change-Id: I769f7c163e20f34c37fa0fe2b0729867ffca5bcb
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r-- | src/libs/installer/component.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index e8abe2383..6cd48db4b 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -553,7 +553,7 @@ void Component::loadComponentScript(const QString &fileName) } catch (const Error &error) { if (packageManagerCore()->settings().allowUnstableComponents()) { setUnstable(Component::Component::ScriptLoadingFailed, error.message()); - qWarning() << error.message(); + qCWarning(QInstaller::lcGeneral) << error.message(); } else { throw error; } @@ -871,7 +871,7 @@ void Component::addDownloadableArchive(const QString &path) { Q_ASSERT(isFromOnlineRepository()); - qDebug() << "addDownloadable" << path; + qCDebug(QInstaller::lcGeneral) << "addDownloadable" << path; d->m_downloadableArchives.append(d->m_vars.value(scVersion) + path); } @@ -1332,7 +1332,8 @@ bool Component::isDefault() const } if (!valueFromScript.isError()) return valueFromScript.toBool(); - qDebug() << "Value from script is not valid." << (valueFromScript.toString().isEmpty() + qCWarning(QInstaller::lcGeneral) << "Value from script is not valid." + << (valueFromScript.toString().isEmpty() ? QString::fromLatin1("Unknown error.") : valueFromScript.toString()); return false; } |