summaryrefslogtreecommitdiffstats
path: root/src/libs/kdtools/task.cpp
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2020-07-03 09:49:41 +0300
committerKatja Marttila <katja.marttila@qt.io>2020-08-24 13:44:24 +0300
commit40c43e4c312c9f1cc4e2e44ac31b4482ccbbc6c0 (patch)
tree060519ebd49fcfaac5129bc395e5c849d318b46f /src/libs/kdtools/task.cpp
parentf2ab63396c1f101216b2c6ade37528492e464785 (diff)
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 <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/kdtools/task.cpp')
-rw-r--r--src/libs/kdtools/task.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/kdtools/task.cpp b/src/libs/kdtools/task.cpp
index 01ddfb0d7..fbc3ed669 100644
--- a/src/libs/kdtools/task.cpp
+++ b/src/libs/kdtools/task.cpp
@@ -176,12 +176,12 @@ QString Task::progressText() const
void Task::run()
{
if (m_started) {
- qCDebug(QInstaller::lcGeneral) << "Trying to start an already started task";
+ qCDebug(QInstaller::lcInstallerInstallLog) << "Trying to start an already started task";
return;
}
if (m_stopped) {
- qCDebug(QInstaller::lcGeneral) << "Trying to start a finished or canceled task";
+ qCDebug(QInstaller::lcInstallerInstallLog) << "Trying to start a finished or canceled task";
return;
}
@@ -208,13 +208,13 @@ void Task::stop()
}
if (!m_started) {
- qCDebug(QInstaller::lcGeneral) << "Trying to stop an unstarted task";
+ qCDebug(QInstaller::lcInstallerInstallLog) << "Trying to stop an unstarted task";
return;
}
if(m_finished || m_stopped)
{
- qCDebug(QInstaller::lcGeneral) << "Trying to stop a finished or canceled task";
+ qCDebug(QInstaller::lcInstallerInstallLog) << "Trying to stop a finished or canceled task";
return;
}
@@ -245,12 +245,12 @@ void Task::pause()
}
if (!m_started) {
- qCDebug(QInstaller::lcGeneral) << "Trying to pause an unstarted task";
+ qCDebug(QInstaller::lcInstallerInstallLog) << "Trying to pause an unstarted task";
return;
}
if (m_finished || m_stopped) {
- qCDebug(QInstaller::lcGeneral) << "Trying to pause a finished or canceled task";
+ qCDebug(QInstaller::lcInstallerInstallLog) << "Trying to pause a finished or canceled task";
return;
}
@@ -278,7 +278,7 @@ void Task::pause()
void Task::resume()
{
if (!m_paused) {
- qCDebug(QInstaller::lcGeneral) << "Trying to resume an unpaused task";
+ qCDebug(QInstaller::lcInstallerInstallLog) << "Trying to resume an unpaused task";
return;
}