aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/thread/TaskRunner.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-05-19 18:44:02 +0000
committerSaturneric <[email protected]>2022-05-19 18:44:02 +0000
commit4043b86f60b825e47d4370bdcf347fad644bec80 (patch)
treeb528e1157eb312b5c6f733f26890f550129b11de /src/core/thread/TaskRunner.cpp
parentperf: improve initialized and recover process (diff)
downloadGpgFrontend-4043b86f60b825e47d4370bdcf347fad644bec80.tar.gz
GpgFrontend-4043b86f60b825e47d4370bdcf347fad644bec80.zip
refactor: change log level for task system
Diffstat (limited to 'src/core/thread/TaskRunner.cpp')
-rw-r--r--src/core/thread/TaskRunner.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/thread/TaskRunner.cpp b/src/core/thread/TaskRunner.cpp
index 3b565abb..226aec0e 100644
--- a/src/core/thread/TaskRunner.cpp
+++ b/src/core/thread/TaskRunner.cpp
@@ -36,8 +36,8 @@ GpgFrontend::Thread::TaskRunner::TaskRunner() = default;
GpgFrontend::Thread::TaskRunner::~TaskRunner() = default;
void GpgFrontend::Thread::TaskRunner::PostTask(Task* task) {
- LOG(INFO) << "called"
- << "Post Task" << task->GetUUID();
+ LOG(TRACE) << "called"
+ << "Post Task" << task->GetUUID();
if (task == nullptr) return;
task->setParent(nullptr);
@@ -50,14 +50,14 @@ void GpgFrontend::Thread::TaskRunner::PostTask(Task* task) {
}
void GpgFrontend::Thread::TaskRunner::run() {
- LOG(INFO) << "called"
- << "thread id:" << QThread::currentThreadId();
+ LOG(TRACE) << "called"
+ << "thread id:" << QThread::currentThreadId();
while (true) {
if (tasks.empty()) {
- LOG(INFO) << "TaskRunner: No tasks to run.";
+ LOG(TRACE) << "TaskRunner: No tasks to run.";
exec();
} else {
- LOG(INFO) << "TaskRunner: Queue size:" << tasks.size();
+ LOG(TRACE) << "TaskRunner: Queue size:" << tasks.size();
Task* task = nullptr;
{
@@ -68,7 +68,7 @@ void GpgFrontend::Thread::TaskRunner::run() {
if (task != nullptr) {
// Run the task
- LOG(INFO) << "TaskRunner: Running Task" << task->GetUUID();
+ LOG(TRACE) << "TaskRunner: Running Task" << task->GetUUID();
try {
task->run();
} catch (const std::exception& e) {