diff options
author | Katja Marttila <katja.marttila@qt.io> | 2020-02-18 13:55:25 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-02-20 07:37:12 +0000 |
commit | 6163fc05768b6a7d05530ef5c33d8f024ebd6b6d (patch) | |
tree | cabc13d262a32fa5b7417fbbead9bf60a4cf795c /src/libs/installer/component.cpp | |
parent | 276d8aafe9410f82c6c342f060332e5bba44fecd (diff) |
CLI: decrease the amount of default debug prints
Debug prints can be suppressed or extended with logging rules. Make the
default usage so that only relevant information will be shown to user,
such as uninstall/install progress, server information, warning messages
and package name, version and displayname.
Change-Id: I09be754a36dd97530d75cdea3edb5fc77e67a856
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r-- | src/libs/installer/component.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index 6cd48db4b..7ad68d24d 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()); - qCWarning(QInstaller::lcGeneral) << error.message(); + qCWarning(QInstaller::lcInstallerInstallLog) << error.message(); } else { throw error; } @@ -1332,7 +1332,7 @@ bool Component::isDefault() const } if (!valueFromScript.isError()) return valueFromScript.toBool(); - qCWarning(QInstaller::lcGeneral) << "Value from script is not valid." + qCWarning(QInstaller::lcInstallerInstallLog) << "Value from script is not valid." << (valueFromScript.toString().isEmpty() ? QString::fromLatin1("Unknown error.") : valueFromScript.toString()); return false; |