From 680f85bf50197861410bd17b2472c9bc7dcd4f9c Mon Sep 17 00:00:00 2001 From: Nav Date: Mon, 2 May 2022 18:56:31 +0100 Subject: [PATCH] Improved logging in InsightWorker --- src/Insight/InsightWorker/InsightWorker.cpp | 1 + src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Insight/InsightWorker/InsightWorker.cpp b/src/Insight/InsightWorker/InsightWorker.cpp index 58c22e5d..1cca4d51 100644 --- a/src/Insight/InsightWorker/InsightWorker.cpp +++ b/src/Insight/InsightWorker/InsightWorker.cpp @@ -109,6 +109,7 @@ namespace Bloom ); if (!resumedEvent.has_value()) { + Logger::debug("Accepted TargetExecutionStopped event"); this->lastTargetState = TargetState::STOPPED; emit this->targetStateUpdated(TargetState::STOPPED); emit this->targetProgramCounterUpdated(event.programCounter); diff --git a/src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp b/src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp index 721cba89..e292c31a 100644 --- a/src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp +++ b/src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp @@ -16,7 +16,7 @@ namespace Bloom } catch (std::exception& exception) { this->state = InsightWorkerTaskState::FAILED; - Logger::debug("InsightWorker task failed - " + std::string(exception.what())); + Logger::error("InsightWorker task failed - " + std::string(exception.what())); emit this->failed(QString::fromStdString(exception.what())); }