Add some trace messages
This commit is contained in:
parent
63a008d067
commit
b1655775bd
@ -31,8 +31,10 @@ Corrector::~Corrector()
|
|||||||
{
|
{
|
||||||
workerThread_->quit();
|
workerThread_->quit();
|
||||||
const auto timeoutMs = 2000;
|
const auto timeoutMs = 2000;
|
||||||
if (!workerThread_->wait(timeoutMs))
|
if (!workerThread_->wait(timeoutMs)) {
|
||||||
|
LTRACE() << "terminating hunspell thread";
|
||||||
workerThread_->terminate();
|
workerThread_->terminate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Corrector::correct(const TaskPtr &task)
|
void Corrector::correct(const TaskPtr &task)
|
||||||
|
@ -79,6 +79,7 @@ Manager::~Manager()
|
|||||||
if (updateAutoChecker_ && updateAutoChecker_->isLastCheckDateChanged()) {
|
if (updateAutoChecker_ && updateAutoChecker_->isLastCheckDateChanged()) {
|
||||||
settings_->lastUpdateCheck = updateAutoChecker_->lastCheckDate();
|
settings_->lastUpdateCheck = updateAutoChecker_->lastCheckDate();
|
||||||
settings_->saveLastUpdateCheck();
|
settings_->saveLastUpdateCheck();
|
||||||
|
LTRACE() << "saved last update time";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,8 +62,10 @@ Recognizer::~Recognizer()
|
|||||||
{
|
{
|
||||||
workerThread_->quit();
|
workerThread_->quit();
|
||||||
const auto timeoutMs = 2000;
|
const auto timeoutMs = 2000;
|
||||||
if (!workerThread_->wait(timeoutMs))
|
if (!workerThread_->wait(timeoutMs)) {
|
||||||
|
LTRACE() << "terminating tesseract thread";
|
||||||
workerThread_->terminate();
|
workerThread_->terminate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Recognizer::updateSettings()
|
void Recognizer::updateSettings()
|
||||||
|
@ -176,6 +176,7 @@ void Loader::handleReply(QNetworkReply *reply)
|
|||||||
|
|
||||||
void Loader::checkForUpdates()
|
void Loader::checkForUpdates()
|
||||||
{
|
{
|
||||||
|
LTRACE() << "Loader::checkForUpdates";
|
||||||
startDownloadUpdates({});
|
startDownloadUpdates({});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -373,6 +374,7 @@ bool Loader::handleComponentReply(QNetworkReply *reply)
|
|||||||
|
|
||||||
void Loader::finishUpdate(const QString &error)
|
void Loader::finishUpdate(const QString &error)
|
||||||
{
|
{
|
||||||
|
LTRACE() << "Loader::finishUpdate";
|
||||||
currentActions_.clear();
|
currentActions_.clear();
|
||||||
for (const auto &i : downloads_) i.first->deleteLater();
|
for (const auto &i : downloads_) i.first->deleteLater();
|
||||||
downloads_.clear();
|
downloads_.clear();
|
||||||
@ -385,6 +387,7 @@ void Loader::finishUpdate(const QString &error)
|
|||||||
|
|
||||||
void Loader::commitUpdate()
|
void Loader::commitUpdate()
|
||||||
{
|
{
|
||||||
|
LTRACE() << "Loader::commitUpdate";
|
||||||
SOFT_ASSERT(!currentActions_.empty(), return );
|
SOFT_ASSERT(!currentActions_.empty(), return );
|
||||||
Installer installer(currentActions_);
|
Installer installer(currentActions_);
|
||||||
if (installer.commit()) {
|
if (installer.commit()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user