diff options
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 5fc321df3..503b9434c 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -557,7 +557,7 @@ void Component::loadComponentScript(const QString &fileName) } catch (const Error &error) { if (packageManagerCore()->settings().allowUnstableComponents()) { setUnstable(Component::UnstableError::ScriptLoadingFailed, error.message()); - qWarning() << error.message(); + qCWarning(QInstaller::lcInstallerInstallLog) << error.message(); } else { throw error; } @@ -875,7 +875,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); } @@ -1336,7 +1336,8 @@ bool Component::isDefault() const } if (!valueFromScript.isError()) return valueFromScript.toBool(); - qDebug() << "Value from script is not valid." << (valueFromScript.toString().isEmpty() + qCWarning(QInstaller::lcInstallerInstallLog) << "Value from script is not valid." + << (valueFromScript.toString().isEmpty() ? QString::fromLatin1("Unknown error.") : valueFromScript.toString()); return false; } |