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/extractarchiveoperation.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/extractarchiveoperation.cpp')
-rw-r--r-- | src/libs/installer/extractarchiveoperation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/installer/extractarchiveoperation.cpp b/src/libs/installer/extractarchiveoperation.cpp index f589ed4c1..d755a5320 100644 --- a/src/libs/installer/extractarchiveoperation.cpp +++ b/src/libs/installer/extractarchiveoperation.cpp @@ -121,7 +121,7 @@ bool ExtractArchiveOperation::performOperation() setValue(QLatin1String("files"), file.fileName()); file.close(); } else { - qCWarning(QInstaller::lcGeneral) << "Cannot open file for writing " << file.fileName() << ":" << file.errorString(); + qCWarning(QInstaller::lcInstallerInstallLog) << "Cannot open file for writing " << file.fileName() << ":" << file.errorString(); } // TODO: Use backups for rollback, too? Doesn't work for uninstallation though. @@ -178,7 +178,7 @@ void ExtractArchiveOperation::startUndoProcess(const QStringList &files) void ExtractArchiveOperation::deleteDataFile(const QString &fileName) { if (fileName.isEmpty()) { - qCWarning(QInstaller::lcGeneral) << Q_FUNC_INFO << "data file name cannot be empty."; + qCWarning(QInstaller::lcInstallerInstallLog) << Q_FUNC_INFO << "data file name cannot be empty."; return; } QFile file(fileName); @@ -188,7 +188,7 @@ void ExtractArchiveOperation::deleteDataFile(const QString &fileName) if (directory.exists() && directory.isEmpty()) directory.rmdir(directory.path()); } else { - qCWarning(QInstaller::lcGeneral) << "Cannot remove data file" << file.fileName(); + qCWarning(QInstaller::lcInstallerInstallLog) << "Cannot remove data file" << file.fileName(); } } |