Improved logging in InsightWorker

This commit is contained in:
Nav
2022-05-02 18:56:31 +01:00
parent fad9ac3e5a
commit 680f85bf50
2 changed files with 2 additions and 1 deletions

View File

@@ -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);

View File

@@ -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()));
}