From 40c43e4c312c9f1cc4e2e44ac31b4482ccbbc6c0 Mon Sep 17 00:00:00 2001 From: Katja Marttila Date: Fri, 3 Jul 2020 09:49:41 +0300 Subject: 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 --- src/libs/kdtools/task.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libs/kdtools/task.cpp') 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; } -- cgit v1.2.3