From dbb4a21931cd10a3caed3c446af0fe06de9873b1 Mon Sep 17 00:00:00 2001 From: saturneric Date: Tue, 30 Jul 2024 20:42:12 +0200 Subject: feat: simplify logging --- src/core/thread/Task.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/thread/Task.cpp') 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 -- cgit v1.2.3