aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/thread/Task.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-30 18:42:12 +0000
committersaturneric <[email protected]>2024-07-30 18:42:12 +0000
commitdbb4a21931cd10a3caed3c446af0fe06de9873b1 (patch)
treeb3eb2e6fc3e67ea274472dfacfa3451848b43c80 /src/core/thread/Task.cpp
parentfix: solve known issues on build (diff)
downloadGpgFrontend-dbb4a21931cd10a3caed3c446af0fe06de9873b1.tar.gz
GpgFrontend-dbb4a21931cd10a3caed3c446af0fe06de9873b1.zip
feat: simplify logging
Diffstat (limited to 'src/core/thread/Task.cpp')
-rw-r--r--src/core/thread/Task.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/thread/Task.cpp b/src/core/thread/Task.cpp
index f5c34dbd..7a0e76e8 100644
--- a/src/core/thread/Task.cpp
+++ b/src/core/thread/Task.cpp
@@ -144,8 +144,8 @@ class Task::Impl {
callback_(rtn_, data_object_);
}
} catch (...) {
- qCWarning(core) << "task: {}, " << GetFullID()
- << "callback caught exception, rtn: " << rtn;
+ LOG_W() << "task: {}, " << GetFullID()
+ << "callback caught exception, rtn: " << rtn;
}
emit parent_->SignalTaskEnd();
});
@@ -217,7 +217,7 @@ void Task::slot_exception_safe_run() noexcept {
rtn = this->Run();
} catch (...) {
- qCWarning(core) << "exception was caught at task: {}" << GetFullID();
+ LOG_W() << "exception was caught at task: {}" << GetFullID();
}
// raise signal to anounce after runnable returned